bugfix: loading a file with text selected

This commit is contained in:
Kartik K. Agaram 2023-12-02 09:32:02 -08:00
parent 0862dd2f72
commit bb9b47fd1a
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
one_time_load = function()
print('loading '..Current_pane.filename)
edit.clear(Current_pane.editor_state)
Current_pane.editor_state.filename = Directory..Current_pane.filename
load_from_disk(Current_pane.editor_state)
Text.redraw_all(Current_pane.editor_state)