diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-08 15:49:52 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-08 15:49:52 -0700 |
commit | 0106ad4b4f16efe2faeb4a6533e54089fbf1aae6 (patch) | |
tree | 04d22d33f183abe0b475dc82e2a71c6fcf78cc56 /select.lua | |
parent | abcc18002bf036ab01115447cabb9321767c71fb (diff) | |
download | lines.love-0106ad4b4f16efe2faeb4a6533e54089fbf1aae6.tar.gz |
add args to some functions
- Text.pos_at_start_of_cursor_screen_line
Diffstat (limited to 'select.lua')
-rw-r--r-- | select.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/select.lua b/select.lua index 05d4cd9..da3f99d 100644 --- a/select.lua +++ b/select.lua @@ -135,7 +135,7 @@ function Text.delete_selection_without_undo(left, right) Cursor1.pos = minp if Text.lt1(Cursor1, Screen_top1) then Screen_top1.line = Cursor1.line - _,Screen_top1.pos = Text.pos_at_start_of_cursor_screen_line() + _,Screen_top1.pos = Text.pos_at_start_of_cursor_screen_line(left, right) end Selection1 = {} -- delete everything between min (inclusive) and max (exclusive) |