correct a comment

We no longer have undo history directly in globals.
This commit is contained in:
Kartik K. Agaram 2022-08-21 14:26:50 -07:00
parent 13f67fa851
commit 61eb87b03c
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ function App.filedropped(file)
save_to_disk(Editor_state)
end
-- clear the slate for the new file
App.initialize_globals() -- in particular, forget all undo history
App.initialize_globals()
Editor_state.filename = file:getFilename()
file:open('r')
Editor_state.lines = load_from_file(file)