diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-06-14 22:38:36 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-06-14 22:39:05 -0700 |
commit | 1aa2590236bb1171ca223b68ccfdb1fc8cc4d869 (patch) | |
tree | dc64413935ba8a427e3c1fba647d38cf780c8c5b /main.lua | |
parent | ab6eff4f2fff31a4eef6e9431f25dc9b0d8eb990 (diff) | |
download | lines.love-1aa2590236bb1171ca223b68ccfdb1fc8cc4d869.tar.gz |
test: undo naming a point
Also ensure we autosave.
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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 |