about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--run.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/run.lua b/run.lua
index 139f814..d5b588a 100644
--- a/run.lua
+++ b/run.lua
@@ -122,7 +122,8 @@ function run.file_drop(file)
   Editor_state.lines = load_from_file(file)
   file:close()
   Text.redraw_all(Editor_state)
-  edit.check_locs(Editor_state)
+  Editor_state.screen_top1 = {line=1, pos=1}
+  Editor_state.cursor1 = {line=1, pos=1}