about summary refs log tree commit diff stats
path: root/source_edit.lua
diff options
context:
space:
mode:
Diffstat (limited to 'source_edit.lua')
-rw-r--r--source_edit.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/source_edit.lua b/source_edit.lua
index 506aa41..5c77758 100644
--- a/source_edit.lua
+++ b/source_edit.lua
@@ -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