'clear' button now clears the entire pane
This commit is contained in:
parent
77eb05b50b
commit
c18da974eb
|
@ -1,6 +1,5 @@
|
||||||
clear_pane = function()
|
clear_pane = function()
|
||||||
Current_pane.editor_state.lines = {{data=''}}
|
edit.clear(Current_pane.editor_state)
|
||||||
Current_pane.editor_state.screen_top1 = {line=1, pos=1}
|
edit.clear(Current_pane.output_editor_state)
|
||||||
Current_pane.editor_state.cursor1 = {line=1, pos=1}
|
Current_pane.canvas = nil
|
||||||
Text.redraw_all(Current_pane.editor_state)
|
|
||||||
end
|
end
|
Loading…
Reference in New Issue