diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-09-13 17:04:34 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-09-13 17:04:34 +0000 |
commit | 8a299adb3bcc80d64c9c8719fd4ab079ce382713 (patch) | |
tree | 75776ae1a72e27b5be2d806e5df2032f325b486b /src/gui/curses | |
parent | a29416e3526f28233eb3efdd191d8a5ded22320f (diff) | |
download | weechat-8a299adb3bcc80d64c9c8719fd4ab079ce382713.zip |
Fixed crash when closing a buffer used by more than one window
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/curses/gui-input.c b/src/gui/curses/gui-input.c index ec5fe0551..46a15ea1e 100644 --- a/src/gui/curses/gui-input.c +++ b/src/gui/curses/gui-input.c @@ -143,7 +143,7 @@ gui_input_grab_end () { if (gui_current_window->buffer->has_input) { - gui_input_insert_string (expanded_key, -1); + gui_input_insert_string (gui_current_window, expanded_key, -1); gui_current_window->buffer->input_buffer_pos += strlen (expanded_key); gui_draw_buffer_input (gui_current_window->buffer, 1); } @@ -225,7 +225,7 @@ gui_input_read () /*gui_printf (gui_current_window->buffer, "gui_input_read: key = %s (%d)\n", key_str, key);*/ if (gui_key_pressed (key_str) != 0) - gui_input_insert_char (key); + gui_input_insert_char (gui_current_window, key); i++; } |