'clear' button now clears the entire pane

This commit is contained in:
Kartik K. Agaram 2023-11-22 19:23:41 -08:00
parent 77eb05b50b
commit c18da974eb
1 changed files with 3 additions and 4 deletions

View File

@ -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