[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.

Zufu Liu

unread,
Sep 29, 2025, 8:43:08 AMSep 29
to scintill...@googlegroups.com

InvalidateStyleRedraw() inside Editor::SetSelectionFromSerialized() can be replaced with just Redraw().

Neil Hodgson

unread,
Oct 11, 2025, 6:52:56 PM (3 days ago) Oct 11
to scintill...@googlegroups.com
  • status: open --> open-fixed
  • Comment:

Committed with [9aba4b] and [bc1571].


[bugs:#2487] Redraw after restore selection

Status: open-fixed


Group: Bug
Labels: Scintilla selection undo
Created: Wed Aug 13, 2025 01:16 PM UTC by Zufu Liu

Last Updated: Mon Sep 29, 2025 12:42 PM UTC
Owner: Neil Hodgson

Reply all
Reply to author
Forward
0 new messages