Menu

#2487 Redraw after restore selection

Bug
closed-fixed
5
2025-11-10
2025-08-13
Zufu Liu
No

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)

Discussion

  • Zufu Liu

    Zufu Liu - 2025-09-29

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

     
  • Neil Hodgson

    Neil Hodgson - 2025-10-11
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2025-10-11

    Committed with [9aba4b] and [bc1571].

     

    Related

    Commit: [9aba4b]
    Commit: [bc1571]

  • Neil Hodgson

    Neil Hodgson - 2025-11-10
    • status: open-fixed --> closed-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2025-11-10

    Committed with [9aba4b] and [bc1571].

     

    Related

    Commit: [9aba4b]
    Commit: [bc1571]


Log in to post a comment.

MongoDB Logo MongoDB