There's a divergence somewhere upstream, but I'm just going to fix this fork first.
FKAYZHU7UX4X2LNRNQEWNX6TZCMQ6R26XOCH3PAM53XIXD2GJ2WQC
-- a copy of run.filedropped when given a filename
function run.switch_to_file(filename)
-- first make sure to save edits on any existing file
if Editor_state.next_save then
save_to_disk(Editor_state)
end
-- clear the slate for the new file
Editor_state.filename = filename
load_from_disk(Editor_state)
Text.redraw_all(Editor_state)
Editor_state.screen_top1 = {line=1, pos=1}
Editor_state.cursor1 = {line=1, pos=1}
love.window.setTitle('links.love - '..Editor_state.filename)
end