From afadb4db66b029869aa7184b9e35fe73a4344cba Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 25 Mar 2023 10:37:55 -0700 Subject: stop reusing cursor locations between files --- run.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'run.lua') 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} -- cgit 1.4.1-2-gfad0