about summary refs log tree commit diff stats
path: root/run.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-03-25 10:37:55 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-03-25 10:37:55 -0700
commitafadb4db66b029869aa7184b9e35fe73a4344cba (patch)
tree7c1f83fc6b50cbba96f46653ba69cf7bd6431740 /run.lua
parent0b1c47f79f71a9af77d042497c72d89a8d616ea2 (diff)
downloadlines.love-afadb4db66b029869aa7184b9e35fe73a4344cba.tar.gz
stop reusing cursor locations between files
Diffstat (limited to 'run.lua')
-rw-r--r--run.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/run.lua b/run.lua
index f68efa4..049362e 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}