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. --- doc/ScintillaDoc.html | 9 ++++++++- doc/ScintillaHistory.html | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 0e0300d95..b9a5971b2 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -1936,6 +1936,7 @@ struct Sci_TextToFindFull { SCI_GETUNDOCOLLECTION → bool
SCI_BEGINUNDOACTION
SCI_ENDUNDOACTION
+ SCI_GETUNDOSEQUENCE → int
SCI_ADDUNDOACTION(int token, int flags)
@@ -1979,11 +1980,17 @@ struct Sci_TextToFindFull {

SCI_BEGINUNDOACTION
SCI_ENDUNDOACTION
- Send these two messages to Scintilla to mark the beginning and end of a set of operations that + Send these two messages to Scintilla to mark the beginning and end of a sequence of operations that you want to undo all as one operation but that you have to generate as several operations. Alternatively, you can use these to mark a set of operations that you do not want to have combined with the preceding or following operations if they are undone.

+

SCI_GETUNDOSEQUENCE → int
+ Determine if an undo sequence is active with a positive value indicating that a sequence is active and 0 that there is no current sequence. + The value returned is the nesting depth of the sequence, that is, the number of times SCI_BEGINUNDOACTION + was called without a correspnding SCI_ENDUNDOACTION. + A negative value indicates an error.

+

SCI_ADDUNDOACTION(int token, int flags)
The container can add its own actions into the undo stack by calling SCI_ADDUNDOACTION and an SCN_MODIFIED diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 520760784..3a820fb92 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -596,6 +596,9 @@ Add SCI_SETCOPYSEPARATOR for separator between parts of a multiple selection when copied to the clipboard. Feature #1530. +

  • + Add SCI_GETUNDOSEQUENCE to determine whether an undo sequence is active and its nesting depth. +
  • Release 5.5.1 -- cgit v1.2.3