From 1cccf5165b891eb95c85932474bb872ab0fbe638 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 28 Jul 2024 09:48:13 +1000 Subject: Add SCI_GETUNDOSEQUENCE to determine whether an undo sequence is active and its nesting depth. --- include/Scintilla.h | 1 + include/Scintilla.iface | 3 +++ include/ScintillaCall.h | 1 + include/ScintillaMessages.h | 1 + 4 files changed, 6 insertions(+) (limited to 'include') 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, -- cgit v1.2.3