bugfix to the helper I added yesterday

This commit is contained in:
Kartik K. Agaram 2023-09-16 22:39:51 -07:00
parent 715c6fd32f
commit 6e2137c5b6
2 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,7 @@ function edit.check_locs(State)
or not edit.cursor_on_text(State)
or not Text.le1(State.screen_top1, State.cursor1) then
State.screen_top1 = {line=1, pos=1}
State.cursor1 = {line=1, pos=1}
edit.put_cursor_on_next_text_line(State)
end
end

View File

@ -115,6 +115,7 @@ function edit.check_locs(State)
or not edit.cursor_on_text(State)
or not Text.le1(State.screen_top1, State.cursor1) then
State.screen_top1 = {line=1, pos=1}
State.cursor1 = {line=1, pos=1}
edit.put_cursor_on_next_text_line(State)
end
end