1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 03:33:12 +02:00

fset: skip spaces at beginning of buffer input

This commit is contained in:
Sébastien Helleu
2017-06-01 23:10:46 +02:00
parent 2d1e0f47d3
commit 718837a76b
2 changed files with 13 additions and 2 deletions
+8 -1
View File
@@ -690,6 +690,7 @@ fset_buffer_input_cb (const void *pointer, void *data,
{ ",", "mark 1" },
{ NULL, NULL } };
char str_command[64];
const char *ptr_input;
int i;
/* make C compiler happy */
@@ -724,7 +725,13 @@ fset_buffer_input_cb (const void *pointer, void *data,
}
/* filter options with given text */
fset_option_filter_options (input_data);
ptr_input = input_data;
while (ptr_input[0] == ' ')
{
ptr_input++;
}
if (ptr_input[0])
fset_option_filter_options (ptr_input);
return WEECHAT_RC_OK;
}