From f98cdd14fd876f57a8dc753316fc27994242828f Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 31 Aug 2024 18:59:23 -0700 Subject: explicitly state when operations manage undo --- source_text.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source_text.lua') diff --git a/source_text.lua b/source_text.lua index 76e9045..9125cb0 100644 --- a/source_text.lua +++ b/source_text.lua @@ -248,7 +248,7 @@ function Text.keychord_press(State, chord) schedule_save(State) elseif chord == 'backspace' then if State.selection1.line then - Text.delete_selection(State, State.left, State.right) + Text.delete_selection_and_record_undo_event(State) schedule_save(State) return end @@ -296,7 +296,7 @@ function Text.keychord_press(State, chord) schedule_save(State) elseif chord == 'delete' then if State.selection1.line then - Text.delete_selection(State, State.left, State.right) + Text.delete_selection_and_record_undo_event(State) schedule_save(State) return end -- cgit 1.4.1-2-gfad0