about summary refs log tree commit diff stats
path: root/edit.lua
diff options
context:
space:
mode:
Diffstat (limited to 'edit.lua')
-rw-r--r--edit.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/edit.lua b/edit.lua
index 118e0ea..9a223bf 100644
--- a/edit.lua
+++ b/edit.lua
@@ -184,6 +184,7 @@ function edit.draw(State)
                          State.cursor1.line = State.cursor1.line+1
                        end
                        record_undo_event(State, {before=Drawing.before, after=snapshot(State, line_index-1, line_index+1)})
+                       Drawing.before = nil
                        schedule_save(State)
                      end,
         })