solemnwarning / rehex

Reverse Engineers' Hex Editor
https://rehex.solemnwarning.net/
GNU General Public License v2.0
2.31k stars 116 forks source link

Document dirty state is not correct if changes are undone after saving #122

Closed solemnwarning closed 3 years ago

solemnwarning commented 3 years ago

Both the dirty and dirty_bytes members are left invalid if a change is undone after being saved. Results in the document potentially not being marked as unsaved and the wrong bytes being highlighted as changed.

Have a fix for this mostly prototyped, but there are some awkward edge cases I haven't decided how to resolve yet.