Original reported at https://github.com/rizonesoft/Notepad3/issues/5146, following steps reproduceable on SciTE:
- open a file with at least 3 lines.
- click margin to select line 1, press Tab twice.
- click margin to select line 2, press Tab twice.
- click "Undo" button 4 times.
- click margin to select line 3, press Tab.
- click "Undo" button.
- click "Redo" button twice.
Diff:
The undo history wasn't truncated at step 5 where the insertion branched from the earlier actions.
Committed fix as [f81029].
Related
Commit: [f81029]