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 /search.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 'search.lua')
-rw-r--r-- | search.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/search.lua b/search.lua index 29dd8dd..5ab9e04 100644 --- a/search.lua +++ b/search.lua @@ -56,7 +56,7 @@ function Text.search_next() end if Text.lt1(Cursor1, Screen_top1) or Text.lt1(Screen_bottom1, Cursor1) then Screen_top1.line = Cursor1.line - local _, pos = Text.pos_at_start_of_cursor_screen_line() + local _, pos = Text.pos_at_start_of_cursor_screen_line(Margin_left, App.screen.width-Margin_right) Screen_top1.pos = pos end end @@ -96,7 +96,7 @@ function Text.search_previous() end if Text.lt1(Cursor1, Screen_top1) or Text.lt1(Screen_bottom1, Cursor1) then Screen_top1.line = Cursor1.line - local _, pos = Text.pos_at_start_of_cursor_screen_line() + local _, pos = Text.pos_at_start_of_cursor_screen_line(Margin_left, App.screen.width-Margin_right) Screen_top1.pos = pos end end |