From 4adb64284bf5d78c4ca4034b722b936d14ca9bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 2 Apr 2024 19:12:44 +0200 Subject: 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. --- tests/unit/gui/test-gui-buffer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/unit/gui/test-gui-buffer.cpp') 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); -- cgit v1.2.3