From cece03a9183181fe9b8bda0b7d0af587291c80ed Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Sun, 12 Oct 2025 07:55:20 +1100 Subject: Bug [#2487]. When undo restores selection, ensure selection redrawn correctly. --- doc/ScintillaHistory.html | 4 ++++ src/Editor.cxx | 1 + 2 files changed, 5 insertions(+) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 254178ae7..9d41f3cfa 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -606,6 +606,10 @@ Feature #1563.
  • + Ensure selection drawn correctly when selection restored by undo. + Bug #2487. +
  • +
  • On Win32, force autocompletion list colours to be opaque. Enlarge bitmap to avoid visible blank background between items. Bug #2482. diff --git a/src/Editor.cxx b/src/Editor.cxx index f5b6b2c03..bde9cff73 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2434,6 +2434,7 @@ void Editor::RestoreSelection(Sci::Position newPos, UndoRedo history) { } } newPos = -1; // Used selection from stack so don't use position returned from undo/redo. + Redraw(); } } if (newPos >= 0) -- cgit v1.2.3