diff options
author | Neil <nyamatongwe@gmail.com> | 2024-07-28 09:48:13 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2024-07-28 09:48:13 +1000 |
commit | 1cccf5165b891eb95c85932474bb872ab0fbe638 (patch) | |
tree | 1772ba118f46766cd81814f69ee413a5556e1e06 /doc/ScintillaDoc.html | |
parent | 76ef74bc44e201562320906ca18d3add7084ff8b (diff) | |
download | scintilla-mirror-1cccf5165b891eb95c85932474bb872ab0fbe638.tar.gz |
Add SCI_GETUNDOSEQUENCE to determine whether an undo sequence is active and its
nesting depth.
Diffstat (limited to 'doc/ScintillaDoc.html')
-rw-r--r-- | doc/ScintillaDoc.html | 9 |
1 files changed, 8 insertions, 1 deletions
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 { <a class="message" href="#SCI_GETUNDOCOLLECTION">SCI_GETUNDOCOLLECTION → bool</a><br /> <a class="message" href="#SCI_BEGINUNDOACTION">SCI_BEGINUNDOACTION</a><br /> <a class="message" href="#SCI_ENDUNDOACTION">SCI_ENDUNDOACTION</a><br /> + <a class="message" href="#SCI_GETUNDOSEQUENCE">SCI_GETUNDOSEQUENCE → int</a><br /> <a class="message" href="#SCI_ADDUNDOACTION">SCI_ADDUNDOACTION(int token, int flags)</a><br /> </code> @@ -1979,11 +1980,17 @@ struct Sci_TextToFindFull { <p><b id="SCI_BEGINUNDOACTION">SCI_BEGINUNDOACTION</b><br /> <b id="SCI_ENDUNDOACTION">SCI_ENDUNDOACTION</b><br /> - 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.</p> + <p><b id="SCI_GETUNDOSEQUENCE">SCI_GETUNDOSEQUENCE → int</b><br /> + 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 <code>SCI_BEGINUNDOACTION</code> + was called without a correspnding <code>SCI_ENDUNDOACTION</code>. + A negative value indicates an error.</p> + <p><b id="SCI_ADDUNDOACTION">SCI_ADDUNDOACTION(int token, int flags)</b><br /> The container can add its own actions into the undo stack by calling <code>SCI_ADDUNDOACTION</code> and an <code>SCN_MODIFIED</code> |