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DKSKKMSJEBKXNKXUW3T6IZAC3HE6HOIQC
2Q437U4FVEYO3Y22OC3NC5MAYVEDTTCWCRJHBKHKWA4WZSPWYUDQC
KCFQO6K5FBODEFEDWJL7Y3DECUCYANS34GYZ55WRHETU4VCHAJYQC
-- ## run: initialize
clear_handlers()
local buf = table.concat(map(Current_pane.editor_state.lines, function(line) return line.data end), '\n')
Current_pane.canvas = love.graphics.newCanvas()
love.graphics.setCanvas(Current_pane.canvas)
love.graphics.push('all')
love.graphics.setBackgroundColor(1,1,1)
edit.clear(Current_pane.output_editor_state)
print = print_to_output
-- ## run
local status, result = live.eval(buf, 'editor')
-- ## run: save some stuff, clean up the rest
print = Real_print
if result then
-- could be either output or error
table.insert(Current_pane.output_editor_state.lines, {data=tostring(result)})
end
if #Current_pane.output_editor_state.lines == 0 then
table.insert(Current_pane.output_editor_state.lines, {data=''})
end
Text.redraw_all(Current_pane.output_editor_state)
love.graphics.pop()
love.graphics.setCanvas()
end
run_app()
end
else
if Current_pane.editor_state.cursor_x then
-- send keys to editor if cursor is visible
edit.keychord_press(Current_pane.editor_state, chord, key)
end
elseif not Show_code and chord == 'f3' then
press_show_button()
if chord == 'C-left' then press_previous_pane_button()
elseif chord == 'C-right' then press_next_pane_button()
elseif chord == 'f1' then press_run_button()
elseif chord == 'f2' then press_stop_button()
elseif chord == 'f3' then press_hide_button()
elseif chord == 'f4' then press_save_button()
elseif chord == 'f5' then press_load_button()
elseif Current_pane.editor_state.cursor_x then
elseif chord == 'C-left' then press_previous_pane_button()