diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-08-17 09:17:00 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-08-17 09:17:00 -0700 |
commit | f11c3f2a9baca97665240f4197a66e387be7bfea (patch) | |
tree | 3bf9656795aca1d64bb439ed8fa557fc2f130e78 /search.lua | |
parent | 68052e807b999c2b3c53f438741a9111b094e325 (diff) | |
parent | 1d710912cc6f4b9649e4cc2c4749c6a852a3ff5a (diff) | |
download | view.love-f11c3f2a9baca97665240f4197a66e387be7bfea.tar.gz |
Merge lines.love
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 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 |