From dd9ae79204b815187472f5c5ab03495435affa7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 17 Dec 2022 15:20:23 +0100 Subject: core: remove unused argument "pos" from function gui_input_insert_string, add tests on function --- src/gui/curses/gui-curses-key.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/curses/gui-curses-key.c') 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 */ -- cgit v1.2.3