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-17 09:17:00 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-08-17 09:17:00 -0700
commitf11c3f2a9baca97665240f4197a66e387be7bfea (patch)
tree3bf9656795aca1d64bb439ed8fa557fc2f130e78 /search.lua
parent68052e807b999c2b3c53f438741a9111b094e325 (diff)
parent1d710912cc6f4b9649e4cc2c4749c6a852a3ff5a (diff)
downloadview.love-f11c3f2a9baca97665240f4197a66e387be7bfea.tar.gz
Merge lines.love
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 1872b9e..e613ed7 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.left, State.right)
     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.left, State.right)
     State.screen_top1.pos = pos
   end
 end