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 ++++++++++ doc/ScintillaHistory.html | 6 ++++++ 2 files changed, 16 insertions(+) (limited to 'doc') 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. diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index ba416abe2..5f28aae36 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -595,6 +595,12 @@ Released 18 December 2024.

  • + Remember selection with undo and redo. Controlled with SCI_SETSELECTIONUNDOHISTORY. + Feature #1273, + Bug #1479, + Bug #1224. +
  • +
  • Fix bug on Qt where double-click stopped working when Scintilla instance had been running for weeks.
  • -- cgit v1.2.3