See title
geany 2.1 (git >= 06b8e6b1c) (built on 2024-04-05 with GTK 3.24.33, GLib 2.72.4)
What should happen on undo of the reload?
#### Change bar all green after reload
Known Scintilla defect:
An issue that has appeared with change markers is that SciTE's Revert command leads to the whole document getting a green change mark as revert just reloads each byte of the file. Since its useful to undo to before the revert, this point can't just be set as the start of change history to appear clear.
It may be possible to add a 'revert' state to the change history that could appear clear but its not obvious what the semantics of this state would be.
https://groups.google.com/g/scintilla-interest/c/9zNAgBG4Pd0/m/C46OGiz_CwAJ
At least one downstream project has resorted to emptying the undo buffer on file reload, then toggling change history off and on, to simulate a freshly opened file: notepad-plus-plus/notepad-plus-plus#13858
What should happen on undo of the reload?
I guess that would depend on the state of the `files.keep_edit_history_on_reload` option . . . ?
If I read the linked notepad issue correctly notepad can't undo the reload, so truncating there makes sense, but Geany can undo the reload (depending on the option but its default is true IIRC) like Scite. So as Neil says on the Scintilla issue, (thanks for finding, I thought I had seen it somewhere) its not clear how to handle it.
github-comments@lists.geany.org