aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
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 /include
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 'include')
-rw-r--r--include/Scintilla.h1
-rw-r--r--include/Scintilla.iface3
-rw-r--r--include/ScintillaCall.h1
-rw-r--r--include/ScintillaMessages.h1
4 files changed, 6 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 719b44afd..d97da016f 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -342,6 +342,7 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
#define SCI_GETCHARACTERCATEGORYOPTIMIZATION 2721
#define SCI_BEGINUNDOACTION 2078
#define SCI_ENDUNDOACTION 2079
+#define SCI_GETUNDOSEQUENCE 2799
#define SCI_GETUNDOACTIONS 2790
#define SCI_SETUNDOSAVEPOINT 2791
#define SCI_GETUNDOSAVEPOINT 2792
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index 195c87d37..c04d23a80 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -837,6 +837,9 @@ fun void BeginUndoAction=2078(,)
# End a sequence of actions that is undone and redone as a unit.
fun void EndUndoAction=2079(,)
+# Is an undo sequence active?
+get int GetUndoSequence=2799(,)
+
# How many undo actions are in the history?
get int GetUndoActions=2790(,)
diff --git a/include/ScintillaCall.h b/include/ScintillaCall.h
index 6212a42cd..02c383883 100644
--- a/include/ScintillaCall.h
+++ b/include/ScintillaCall.h
@@ -245,6 +245,7 @@ public:
int CharacterCategoryOptimization();
void BeginUndoAction();
void EndUndoAction();
+ int UndoSequence();
int UndoActions();
void SetUndoSavePoint(int action);
int UndoSavePoint();
diff --git a/include/ScintillaMessages.h b/include/ScintillaMessages.h
index cac6d9d62..c511720c5 100644
--- a/include/ScintillaMessages.h
+++ b/include/ScintillaMessages.h
@@ -171,6 +171,7 @@ enum class Message {
GetCharacterCategoryOptimization = 2721,
BeginUndoAction = 2078,
EndUndoAction = 2079,
+ GetUndoSequence = 2799,
GetUndoActions = 2790,
SetUndoSavePoint = 2791,
GetUndoSavePoint = 2792,