diff options
Diffstat (limited to 'edit.lua')
-rw-r--r-- | edit.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/edit.lua b/edit.lua index 729791e..39721e2 100644 --- a/edit.lua +++ b/edit.lua @@ -365,9 +365,8 @@ function edit.keychord_press(State, chord, key) if Text.cursor_out_of_screen(State) then Text.snap_cursor_to_bottom_of_screen(State, State.left, State.right) end - schedule_save(State) record_undo_event(State, {before=before, after=snapshot(State, before_line, State.cursor1.line)}) - -- dispatch to text + schedule_save(State) else Text.keychord_press(State, chord) end |