diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-17 15:20:23 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-12-18 14:13:14 +0100 |
commit | dd9ae79204b815187472f5c5ab03495435affa7c (patch) | |
tree | f0232f26e1ad2b0b94c2ed2aabe0de5aa36e0d0b /src/gui/curses/gui-curses-key.c | |
parent | f03384d12426228bf80acb1ce4e05ad2d4ff4865 (diff) | |
download | weechat-dd9ae79204b815187472f5c5ab03495435affa7c.zip |
core: remove unused argument "pos" from function gui_input_insert_string, add tests on function
Diffstat (limited to 'src/gui/curses/gui-curses-key.c')
-rw-r--r-- | src/gui/curses/gui-curses-key.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c index 6ca0f48b6..218940305 100644 --- a/src/gui/curses/gui-curses-key.c +++ b/src/gui/curses/gui-curses-key.c @@ -441,8 +441,7 @@ gui_key_flush (int paste) { if (!paste || !undo_done) gui_buffer_undo_snap (gui_current_window->buffer); - gui_input_insert_string (gui_current_window->buffer, - key_str, -1); + gui_input_insert_string (gui_current_window->buffer, key_str); gui_input_text_changed_modifier_and_signal (gui_current_window->buffer, (!paste || !undo_done) ? 1 : 0, 1); /* stop completion */ |