about summary refs log tree commit diff stats
path: root/search.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-08-18 10:28:06 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-08-18 10:29:50 -0700
commitcf8d9774eac577b4cd4fdb77cbb27b6b46004756 (patch)
treeaf0d2a5ae8122b2a45548ca131403973c664683f /search.lua
parent3c043105034e5f0d2df7fd01bc04abb11ad277fb (diff)
downloadlines.love-cf8d9774eac577b4cd4fdb77cbb27b6b46004756.tar.gz
drop some obsolete args
Diffstat (limited to 'search.lua')
-rw-r--r--search.lua4
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