From 757d00ab48f97d1c2d78d0d3b969064319e82902 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 23 Jan 2005 16:32:40 +0000 Subject: Fixed crash when closing some private buffers --- src/gui/curses/gui-input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/curses') diff --git a/src/gui/curses/gui-input.c b/src/gui/curses/gui-input.c index 9001587b6..264991f6d 100644 --- a/src/gui/curses/gui-input.c +++ b/src/gui/curses/gui-input.c @@ -545,9 +545,10 @@ gui_read_keyb () user_command (SERVER(gui_current_window->buffer), gui_current_window->buffer->input_buffer); if (ptr_buffer == gui_current_window->buffer) - gui_draw_buffer_input (ptr_buffer, 0); - if (ptr_buffer) + { ptr_buffer->input_buffer[0] = '\0'; + gui_draw_buffer_input (ptr_buffer, 0); + } } } break; -- cgit v1.2.3