summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-input.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-01-23 16:32:40 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-01-23 16:32:40 +0000
commit757d00ab48f97d1c2d78d0d3b969064319e82902 (patch)
treecca73b11c2575997beba4590c1c77bb2177033b7 /src/gui/curses/gui-input.c
parentecb6ed6707c5635ac9633e6ba4bae44505c69ffe (diff)
downloadweechat-757d00ab48f97d1c2d78d0d3b969064319e82902.zip
Fixed crash when closing some private buffers
Diffstat (limited to 'src/gui/curses/gui-input.c')
-rw-r--r--src/gui/curses/gui-input.c5
1 files changed, 3 insertions, 2 deletions
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;