diff options
Diffstat (limited to 'src/gui/gui-input.c')
-rw-r--r-- | src/gui/gui-input.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c index 73f933bb4..c080c3e3c 100644 --- a/src/gui/gui-input.c +++ b/src/gui/gui-input.c @@ -294,9 +294,8 @@ gui_input_return (struct t_gui_window *window) command = strdup (window->buffer->input_buffer); if (command) { - gui_history_buffer_add (window->buffer, - window->buffer->input_buffer); - gui_history_global_add (window->buffer->input_buffer); + gui_history_add (window->buffer, + window->buffer->input_buffer); window->buffer->input_buffer[0] = '\0'; window->buffer->input_buffer_size = 0; window->buffer->input_buffer_length = 0; @@ -922,8 +921,8 @@ gui_input_history_previous (struct t_gui_window *window) if (window->buffer->input_buffer_size > 0) { window->buffer->input_buffer[window->buffer->input_buffer_size] = '\0'; - gui_history_buffer_add (window->buffer, window->buffer->input_buffer); - gui_history_global_add (window->buffer->input_buffer); + gui_history_add (window->buffer, + window->buffer->input_buffer); } } else @@ -1002,8 +1001,8 @@ gui_input_history_next (struct t_gui_window *window) if (window->buffer->input_buffer_size > 0) { window->buffer->input_buffer[window->buffer->input_buffer_size] = '\0'; - gui_history_buffer_add (window->buffer, window->buffer->input_buffer); - gui_history_global_add (window->buffer->input_buffer); + gui_history_add (window->buffer, + window->buffer->input_buffer); window->buffer->input_buffer[0] = '\0'; window->buffer->input_buffer_size = 0; window->buffer->input_buffer_length = 0; |