[scintilla:bugs] #2487 Redraw after restore selection

0 views
Skip to first unread message

Zufu Liu

unread,
Aug 13, 2025, 9:16:46 AMAug 13
to scintill...@googlegroups.com

[bugs:#2487] Redraw after restore selection

Status: open
Group: Bug
Labels: Scintilla selection undo
Created: Wed Aug 13, 2025 01:16 PM UTC by Zufu Liu
Last Updated: Wed Aug 13, 2025 01:16 PM UTC
Owner: Neil Hodgson

See https://github.com/zufuliu/notepad4/issues/1067 for the bug.
Image

Following is a simple fix for Editor::RestoreSelection():

diff -r b19406b4e894 src/Editor.cxx
@@ -2434,6 +2434,7 @@
                }
            }
            newPos = -1; // Used selection from stack so don't use position returned from undo/redo.
+           Redraw();
        }
    }
    if (newPos >= 0)

Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

Reply all
Reply to author
Forward
0 new messages