aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index e6aec550a..343529510 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -6605,12 +6605,12 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
case Message::GetUndoSavePoint:
return pdoc->UndoSavePoint();
- case Message::SetUndoCurrent:
- pdoc->SetUndoCurrent(static_cast<int>(wParam));
+ case Message::SetUndoDetach:
+ pdoc->SetUndoDetach(static_cast<int>(wParam));
break;
- case Message::GetUndoCurrent:
- return pdoc->UndoCurrent();
+ case Message::GetUndoDetach:
+ return pdoc->UndoDetach();
case Message::SetUndoTentative:
pdoc->SetUndoTentative(static_cast<int>(wParam));
@@ -6619,6 +6619,13 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
case Message::GetUndoTentative:
return pdoc->UndoTentative();
+ case Message::SetUndoCurrent:
+ pdoc->SetUndoCurrent(static_cast<int>(wParam));
+ break;
+
+ case Message::GetUndoCurrent:
+ return pdoc->UndoCurrent();
+
case Message::GetUndoActionType:
return pdoc->UndoActionType(static_cast<int>(wParam));