stop reusing cursor locations between files

This commit is contained in:
Kartik K. Agaram 2023-03-25 10:37:55 -07:00
parent 0b1c47f79f
commit afadb4db66
1 changed files with 2 additions and 1 deletions

View File

@ -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}