bugfix
scenario: start with an empty file, there's one line with a '+' button on it press the '+' to create a drawing in the top line press C-z to undo = before this commit, undo would create a weird intermediate state where there were two lines with '+' on them scenario: type something into the first line, press enter to append a second line press the '+' on the second line to create a drawing press C-z to undo = crash The root cause in both cases: we end up creating 2 undo events starting from the same before snapshot: one inside the button handler, and a second on mouse release. This doesn't affect lines 1 because we had a separate variable called current_drawing which protected the mouse release handler from triggering.
This commit is contained in:
parent
48a0e0e59d
commit
5ce18bdf6d
Loading…
Reference in New Issue