> #### 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 . . . ?


-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3824#issuecomment-2043888815
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/3824/2043888...@github.com>

Reply via email to