mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user