From 1aa2590236bb1171ca223b68ccfdb1fc8cc4d869 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 14 Jun 2022 22:38:36 -0700 Subject: test: undo naming a point Also ensure we autosave. --- main.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.lua') diff --git a/main.lua b/main.lua index 165538a..def3ec2 100644 --- a/main.lua +++ b/main.lua @@ -409,6 +409,7 @@ function App.keychord_pressed(chord) Selection1 = deepcopy(src.selection) patch(Lines, event.after, event.before) Text.redraw_all() -- if we're scrolling, reclaim all fragments to avoid memory leaks + save_to_disk(Lines, Filename) end elseif chord == 'C-y' then for _,line in ipairs(Lines) do line.y = nil end -- just in case we scroll @@ -420,6 +421,7 @@ function App.keychord_pressed(chord) Selection1 = deepcopy(src.selection) patch(Lines, event.before, event.after) Text.redraw_all() -- if we're scrolling, reclaim all fragments to avoid memory leaks + save_to_disk(Lines, Filename) end -- clipboard elseif chord == 'C-c' then -- cgit 1.4.1-2-gfad0