diff --git a/0075-clear_pane b/0075-clear_pane index a59346e..007f46e 100644 --- a/0075-clear_pane +++ b/0075-clear_pane @@ -1,6 +1,5 @@ clear_pane = function() - Current_pane.editor_state.lines = {{data=''}} - Current_pane.editor_state.screen_top1 = {line=1, pos=1} - Current_pane.editor_state.cursor1 = {line=1, pos=1} - Text.redraw_all(Current_pane.editor_state) + edit.clear(Current_pane.editor_state) + edit.clear(Current_pane.output_editor_state) + Current_pane.canvas = nil end \ No newline at end of file