diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-08-18 13:11:41 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-08-18 13:11:41 -0700 |
commit | 61b59f4dd6446d87ef4a90d3d562b53c8fc8f75c (patch) | |
tree | af1ed740e1ffc2b7dac894f08f24ed3cfb984690 /search.lua | |
parent | 6d3c059964251b479cbeea663f77ef1d377bef96 (diff) | |
parent | 72866ec0adb9e744e40bc5e1eba027f5dd32d41b (diff) | |
download | text.love-61b59f4dd6446d87ef4a90d3d562b53c8fc8f75c.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 e613ed7..bd28d58 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_screen_line(State, State.cursor1) 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_screen_line(State, State.cursor1) State.screen_top1.pos = pos end end |