about summary refs log tree commit diff stats
path: root/edit.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2024-07-22 14:24:31 -0700
committerKartik K. Agaram <vc@akkartik.com>2024-07-22 14:24:31 -0700
commit8eb9826aac4a38721c47bdf648f8697538438caa (patch)
treeff63a28e53a489875b1b357504f9ce7c46718efb /edit.lua
parentdb2463b9d046419ce94005106e953ed55bc3b644 (diff)
parentfab72a2902efe3271b8bf586a31c8c8ab8c7c1e8 (diff)
downloadtext.love-8eb9826aac4a38721c47bdf648f8697538438caa.tar.gz
Merge lines.love
Diffstat (limited to 'edit.lua')
-rw-r--r--edit.lua3
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