about summary refs log tree commit diff stats
path: root/select.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2024-09-01 01:17:22 -0700
committerKartik K. Agaram <vc@akkartik.com>2024-09-01 01:17:22 -0700
commitaf0d177d57978755f405404d1ebab21479e42ee9 (patch)
treeb9831e7c11dfac96c1ce62e898eaa7092021549d /select.lua
parentcaa736267b23b4e330d5f556fa96887eb953802a (diff)
parent52f876302f7e6da1f8f418d9dc85f0698c494e15 (diff)
downloadview.love-af0d177d57978755f405404d1ebab21479e42ee9.tar.gz
Merge lines.love
Diffstat (limited to 'select.lua')
-rw-r--r--select.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/select.lua b/select.lua
index 34039c9..78affdc 100644
--- a/select.lua
+++ b/select.lua
@@ -79,14 +79,14 @@ function Text.mouse_pos(State)
   return screen_bottom1.line, Text.pos_at_end_of_screen_line(State, screen_bottom1)
 end
 
-function Text.cut_selection(State)
+function Text.cut_selection_and_record_undo_event(State)
   if State.selection1.line == nil then return end
   local result = Text.selection(State)
-  Text.delete_selection(State)
+  Text.delete_selection_and_record_undo_event(State)
   return result
 end
 
-function Text.delete_selection(State)
+function Text.delete_selection_and_record_undo_event(State)
   if State.selection1.line == nil then return end
   local minl,maxl = minmax(State.selection1.line, State.cursor1.line)
   local before = snapshot(State, minl, maxl)