From f2bc1988dba5ca23692020017aa6f9ee2b4d71cf Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 25 Jan 2025 08:40:06 +1100 Subject: Bug [#1224]. Use enum for undo selection history and make API names more consistent as 'undo selection' instead of 'selection undo' as more closely associated with undo than selection. --- doc/ScintillaDoc.html | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 44df71562..3bc5acd90 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -1938,8 +1938,8 @@ struct Sci_TextToFindFull { SCI_ENDUNDOACTION
SCI_GETUNDOSEQUENCE → int
SCI_ADDUNDOACTION(int token, int flags)
- SCI_SETSELECTIONUNDOHISTORY(bool selectionUndoHistory)
- SCI_GETSELECTIONUNDOHISTORY → bool
+ SCI_SETUNDOSELECTIONHISTORY(int undoSelectionHistory)
+ SCI_GETUNDOSELECTIONHISTORY → int

SCI_UNDO
@@ -2018,14 +2018,35 @@ struct Sci_TextToFindFull { look like typing or deletions that look like multiple uses of the Backspace or Delete keys.

-

SCI_SETSELECTIONUNDOHISTORY(bool selectionUndoHistory)
- SCI_GETSELECTIONUNDOHISTORY → bool
+

SCI_SETUNDOSELECTIONHISTORY(int undoSelectionHistory)
+ SCI_GETUNDOSELECTIONHISTORY → int
The selection for each action can be saved and then restored when undo or redo is performed. - SCI_SETSELECTIONUNDOHISTORY controls this. - The current bool argument may change to a set of flags. + SCI_SETUNDOSELECTIONHISTORY controls this. There is a memory cost for this feature with a minimum of 150 bytes for each of undo and redo for each recorded action. Recording may be turned on at any time.

+

The undoSelectionHistory argument can be:

+ + + + + + + + + + + + + + + + + + + +
SC_UNDO_SELECTION_HISTORY_DISABLED0The default: undo selection history turned off.
SC_UNDO_SELECTION_HISTORY_ENABLED1Restore selection for each undo and redo.
+

Undo Save and Restore

This feature is unfinished and has limitations. -- cgit v1.2.3