Merge lines.love

Bring forks up to date.
This commit is contained in:
Kartik K. Agaram 2022-08-21 14:36:08 -07:00
commit e2077858f7
2 changed files with 4 additions and 1 deletions

View File

@ -75,6 +75,9 @@ Updates to it can be downloaded from the following mirrors:
Further forks are encouraged. If you show me your fork, I'll link to it here.
* https://codeberg.org/akkartik/view.love -- a stripped down version without
support for modifying files; useful starting point for some forks.
## Feedback
[Most appreciated.](http://akkartik.name/contact)

View File

@ -119,7 +119,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)