diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-08-18 10:28:06 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-08-18 10:29:50 -0700 |
commit | cf8d9774eac577b4cd4fdb77cbb27b6b46004756 (patch) | |
tree | af0d2a5ae8122b2a45548ca131403973c664683f | |
parent | 3c043105034e5f0d2df7fd01bc04abb11ad277fb (diff) | |
download | view.love-cf8d9774eac577b4cd4fdb77cbb27b6b46004756.tar.gz |
drop some obsolete args
-rw-r--r-- | search.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/search.lua b/search.lua index e613ed7..01a832b 100644 --- a/search.lua +++ b/search.lua @@ -62,7 +62,7 @@ function Text.search_next(State) end if Text.lt1(State.cursor1, State.screen_top1) or Text.lt1(State.screen_bottom1, State.cursor1) then State.screen_top1.line = State.cursor1.line - local pos = Text.pos_at_start_of_cursor_screen_line(State, State.left, State.right) + local pos = Text.pos_at_start_of_cursor_screen_line(State) State.screen_top1.pos = pos end end @@ -110,7 +110,7 @@ function Text.search_previous(State) end if Text.lt1(State.cursor1, State.screen_top1) or Text.lt1(State.screen_bottom1, State.cursor1) then State.screen_top1.line = State.cursor1.line - local pos = Text.pos_at_start_of_cursor_screen_line(State, State.left, State.right) + local pos = Text.pos_at_start_of_cursor_screen_line(State) State.screen_top1.pos = pos end end |