From c18da974eb811e25a9f0079f4f4cfe33af5dd153 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 22 Nov 2023 19:23:41 -0800 Subject: [PATCH] 'clear' button now clears the entire pane --- 0075-clear_pane | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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