See https://github.com/zufuliu/notepad4/issues/1067 for the bug.
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)
InvalidateStyleRedraw()insideEditor::SetSelectionFromSerialized()can be replaced with justRedraw().Committed with [9aba4b] and [bc1571].
Related
Commit: [9aba4b]
Commit: [bc1571]
Committed with [9aba4b] and [bc1571].
Related
Commit: [9aba4b]
Commit: [bc1571]