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 filenamefunction run.switch_to_file(filename)-- first make sure to save edits on any existing fileif Editor_state.next_save thensave_to_disk(Editor_state)end-- clear the slate for the new fileEditor_state.filename = filenameload_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