From 3de9d37c7b8f4501558d309ada718dc52533e94c Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 22 Jan 2025 21:34:54 +1100 Subject: Bug [#1224]. Remember selection in undo history. SCI_SETSELECTIONUNDOHISTORY. --- doc/ScintillaDoc.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 083062dd2..44df71562 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -1938,6 +1938,8 @@ struct Sci_TextToFindFull { SCI_ENDUNDOACTION
SCI_GETUNDOSEQUENCE → int
SCI_ADDUNDOACTION(int token, int flags)
+ SCI_SETSELECTIONUNDOHISTORY(bool selectionUndoHistory)
+ SCI_GETSELECTIONUNDOHISTORY → bool

SCI_UNDO
@@ -2016,6 +2018,14 @@ 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
+ 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. + 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.

+

Undo Save and Restore

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