diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-12 17:14:14 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-12 17:14:14 -0700 |
commit | 2b1889353bcf70951ca180f9032ef7e6f35a67ab (patch) | |
tree | 16d2f7b115d2e81dcf30b74b2d228028a981e7d9 /select.lua | |
parent | 5107df3cd012fb108c600550a2dc1d63d08a508f (diff) | |
download | lines.love-2b1889353bcf70951ca180f9032ef7e6f35a67ab.tar.gz |
add state arg to a few functions
- Text.pos_at_start_of_cursor_screen_line - Text.cursor_past_screen_bottom
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 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) |