about summary refs log tree commit diff stats
path: root/edit.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-09-16 22:39:51 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-09-16 22:39:51 -0700
commit6e2137c5b6bde9c84e96cd919fce38581558b917 (patch)
treef3334bfe6af938ca1ee6598c9fa0ca18b16d4f3e /edit.lua
parent715c6fd32fadf8b14f4755cc31bacfb21c7f7dac (diff)
downloadview.love-6e2137c5b6bde9c84e96cd919fce38581558b917.tar.gz
bugfix to the helper I added yesterday
Diffstat (limited to 'edit.lua')
-rw-r--r--edit.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/edit.lua b/edit.lua
index d30dbdc..b9bd9c4 100644
--- a/edit.lua
+++ b/edit.lua
@@ -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