8 lines
335 B
Plaintext
8 lines
335 B
Plaintext
one_time_load = function()
|
|
print('loading '..Current_pane.filename)
|
|
Current_pane.editor_state.filename = Directory..Current_pane.filename
|
|
load_from_disk(Current_pane.editor_state)
|
|
Text.redraw_all(Current_pane.editor_state)
|
|
-- Disable autosave; undo isn't accessible in mobile devices.
|
|
Current_pane.editor_state.filename = nil
|
|
end |