summaryrefslogtreecommitdiff
path: root/tests/unit/gui/test-gui-buffer.cpp
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-02 19:12:44 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-07 13:18:13 +0200
commit4adb64284bf5d78c4ca4034b722b936d14ca9bca (patch)
tree55fc93fde25474076fe35a4be6a9beec7116667f /tests/unit/gui/test-gui-buffer.cpp
parent3cce916035ed4a99c765aa885555a2cc96e95a92 (diff)
downloadweechat-4adb64284bf5d78c4ca4034b722b936d14ca9bca.zip
buffer: add property `input_get_any_user_data` in buffer (issue #2066)
This allows buffers to get any user input, including commands, that are sent to the buffer callback instead of being executed on the buffer.
Diffstat (limited to 'tests/unit/gui/test-gui-buffer.cpp')
-rw-r--r--tests/unit/gui/test-gui-buffer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/gui/test-gui-buffer.cpp b/tests/unit/gui/test-gui-buffer.cpp
index 26d8b23b9..b6f14cdcb 100644
--- a/tests/unit/gui/test-gui-buffer.cpp
+++ b/tests/unit/gui/test-gui-buffer.cpp
@@ -723,7 +723,7 @@ TEST(GuiBuffer, NewUser)
/* test signal "buffer_user_input_test" */
signal_buffer_user_input[0] = '\0';
- input_data (buffer, "something", NULL, 0);
+ input_data (buffer, "something", NULL, 0, 0);
STRCMP_EQUAL("something", signal_buffer_user_input);
/* test signal "buffer_user_closing_test" */
@@ -738,7 +738,7 @@ TEST(GuiBuffer, NewUser)
/* close the buffer by sending "q" */
signal_buffer_user_input[0] = '\0';
signal_buffer_user_closing = 0;
- input_data (buffer, "q", NULL, 0);
+ input_data (buffer, "q", NULL, 0, 0);
STRCMP_EQUAL("q", signal_buffer_user_input);
LONGS_EQUAL(1, signal_buffer_user_closing);
@@ -758,7 +758,7 @@ TEST(GuiBuffer, NewUser)
*/
signal_buffer_user_input[0] = '\0';
signal_buffer_user_closing = 0;
- input_data (buffer, "q", NULL, 0);
+ input_data (buffer, "q", NULL, 0, 0);
STRCMP_EQUAL("q", signal_buffer_user_input);
LONGS_EQUAL(0, signal_buffer_user_closing);