diff options
| author | Zufu Liu <unknown> | 2025-10-12 07:55:20 +1100 |
|---|---|---|
| committer | Zufu Liu <unknown> | 2025-10-12 07:55:20 +1100 |
| commit | cece03a9183181fe9b8bda0b7d0af587291c80ed (patch) | |
| tree | 5cf05f8529be3e0277a9f6e28043f941a1dae67b | |
| parent | 7c23127fa94e86d077d6b4098ab4e2379060d823 (diff) | |
| download | scintilla-mirror-cece03a9183181fe9b8bda0b7d0af587291c80ed.tar.gz | |
Bug [#2487]. When undo restores selection, ensure selection redrawn correctly.
| -rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
| -rw-r--r-- | src/Editor.cxx | 1 |
2 files changed, 5 insertions, 0 deletions
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 @@ <a href="https://sourceforge.net/p/scintilla/feature-requests/1563/">Feature #1563</a>. </li> <li> + Ensure selection drawn correctly when selection restored by undo. + <a href="https://sourceforge.net/p/scintilla/bugs/2487/">Bug #2487</a>. + </li> + <li> On Win32, force autocompletion list colours to be opaque. Enlarge bitmap to avoid visible blank background between items. <a href="https://sourceforge.net/p/scintilla/bugs/2482/">Bug #2482</a>. 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) |
