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5FEWXFQX7RY6CAC YK5FRJWHTG3EUZFKVMYIFAENIQG3LKSFNNMD4BYRPPKR7KMKEJQQC VUF2SX7BSB6DYFUCIS24UAMIQB4F3FLYSDLS5UXDCKIKPTWH4WWQC VAVXKWZVOFJGWHCWYLTPDKSKKMSJEBKXNKXUW3T6IZAC3HE6HOIQC OE26XIQOCBNXDOCLQ3TEXC6GLU7XF5LYJ4RI2MGFJ6W6GTU264RAC PRE6XPRNICDCHMF7C45A6DRPVT47IPAIWW6Q7AHNGW3D2PBGOPNAC ZM7NOBRMD5HHA35Y4JDC76EOA2RD4KQOQCPURXYKXA6ABMKOJIGQC EHKB76GODSP442LYG5Q4HDBA26RHWXFC4Y76ZJL2ERW3RJEBDT7QC CMZDG7CJKY4AO2RTV7C54WHUEHYQXDTN57R4Y5ZADZBSLNOOBDFQC JV27LDDKKY57IEBWGBFPSHEARMOEGLBYGBJD27PDPTNWWYXA4T6AC SIASJPGRZ55R5AY2Q7QO6CVBPVU5VHXQTSBWJQLXA3RAFFNBSHVQC UEG224LHBOPWSKOVXTKVAUEL47HET566LJF7ZSWVKMMLBSJWUHFAC clear_pane_button = function(x, y, r)return overflowable_button('clear', x, y, r,function()Show_menu = nilclear_pane()end)end
Output_editor_state = nil
update_output_editor = function(pane)pane.output_editor_state.top = pane.editor_state.bottom+5+10+5pane.output_editor_state.right = pane.editor_state.rightpane.output_editor_state.width = pane.editor_state.widthpane.output_editor_state.bottom = Safe_height - 5Text.redraw_all(pane.output_editor_state)
update_output_editor = function()Output_editor_state.top = Current_pane.editor_state.bottom+5+10+5Output_editor_state.right = Current_pane.editor_state.rightOutput_editor_state.width = Current_pane.editor_state.widthOutput_editor_state.bottom = Safe_height - 5Text.redraw_all(Output_editor_state)
table.insert(Current_pane.output_editor_state.lines, {data=''})Current_pane.output_editor_state.cursor1 = {line=#Current_pane.output_editor_state.lines, pos=1}Text.redraw_all(Current_pane.output_editor_state)Text.insert_text(Current_pane.output_editor_state, error_with_callstack)
table.insert(Output_editor_state.lines, {data=''})Output_editor_state.cursor1 = {line=#Output_editor_state.lines, pos=1}Text.redraw_all(Output_editor_state)Text.insert_text(Output_editor_state, error_with_callstack)
local result = {}result.editor_state = code_editor_state()result.output_editor_state = output_editor_state(result.editor_state)return result
return {editor_state = code_editor_state()}
elseif Current_pane.output_editor_state.scrollbar_drag thenadjust_scrollbar(Current_pane.output_editor_state, y)Current_pane.output_editor_state.scrollbar_drag = nilCurrent_pane.output_editor_state.scrollbar_offset = nilelseif on_editor_scrollbar_area(Current_pane.output_editor_state, x,y) thenadjust_scrollbar(Current_pane.output_editor_state, y)
elseif Output_editor_state.scrollbar_drag thenadjust_scrollbar(Output_editor_state, y)Output_editor_state.scrollbar_drag = nilOutput_editor_state.scrollbar_offset = nilelseif on_editor_scrollbar_area(Output_editor_state, x,y) thenadjust_scrollbar(Output_editor_state, y)
elseif on_editor_scrollbar(Current_pane.output_editor_state, x,y) thenCurrent_pane.output_editor_state.scrollbar_drag = truelocal sbtopy = compute_scrollbar_topy(Current_pane.output_editor_state)Current_pane.output_editor_state.scrollbar_offset = y - sbtopyelseif on_editor_scrollbar_area(Current_pane.output_editor_state, x,y) then
elseif on_editor_scrollbar(Output_editor_state, x,y) thenOutput_editor_state.scrollbar_drag = truelocal sbtopy = compute_scrollbar_topy(Output_editor_state)Output_editor_state.scrollbar_offset = y - sbtopyelseif on_editor_scrollbar_area(Output_editor_state, x,y) then
edit.draw(Current_pane.output_editor_state, Foreground_color, --[[hide cursor]] true)draw_scrollbar(Current_pane.output_editor_state)
edit.draw(Output_editor_state, Foreground_color, --[[hide cursor]] true)draw_scrollbar(Output_editor_state)