about summary refs log tree commit diff stats
path: root/select.lua
diff options
context:
space:
mode:
Diffstat (limited to 'select.lua')
-rw-r--r--select.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/select.lua b/select.lua
index 1b74858..8c015f6 100644
--- a/select.lua
+++ b/select.lua
@@ -133,7 +133,7 @@ function Text.delete_selection_without_undo(State, left, right)
   State.cursor1.pos = minp
   if Text.lt1(State.cursor1, State.screen_top1) then
     State.screen_top1.line = State.cursor1.line
-    _,State.screen_top1.pos = Text.pos_at_start_of_cursor_screen_line(left, right)
+    _,State.screen_top1.pos = Text.pos_at_start_of_cursor_screen_line(State, left, right)
   end
   State.selection1 = {}
   -- delete everything between min (inclusive) and max (exclusive)