aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2024-07-28 09:48:13 +1000
committerNeil <nyamatongwe@gmail.com>2024-07-28 09:48:13 +1000
commit1cccf5165b891eb95c85932474bb872ab0fbe638 (patch)
tree1772ba118f46766cd81814f69ee413a5556e1e06 /src/Editor.cxx
parent76ef74bc44e201562320906ca18d3add7084ff8b (diff)
downloadscintilla-mirror-1cccf5165b891eb95c85932474bb872ab0fbe638.tar.gz
Add SCI_GETUNDOSEQUENCE to determine whether an undo sequence is active and its
nesting depth.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 390c83898..0561b42f8 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -6636,6 +6636,9 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
pdoc->EndUndoAction();
return 0;
+ case Message::GetUndoSequence:
+ return pdoc->UndoSequenceDepth();
+
case Message::GetUndoActions:
return pdoc->UndoActions();