fset: add support of filters in /fset command
This commit is contained in:
parent
7b5b123365
commit
8e3ac1d1cd
@ -136,6 +136,8 @@ fset_command_fset (const void *pointer, void *data,
|
|||||||
return WEECHAT_RC_OK;
|
return WEECHAT_RC_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (argv[1][0] == '-')
|
||||||
|
{
|
||||||
ptr_fset_option = weechat_arraylist_get (fset_options,
|
ptr_fset_option = weechat_arraylist_get (fset_options,
|
||||||
fset_buffer_selected_line);
|
fset_buffer_selected_line);
|
||||||
if (!ptr_fset_option)
|
if (!ptr_fset_option)
|
||||||
@ -211,6 +213,17 @@ fset_command_fset (const void *pointer, void *data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
WEECHAT_COMMAND_ERROR;
|
WEECHAT_COMMAND_ERROR;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* set new filter */
|
||||||
|
if (!fset_buffer)
|
||||||
|
fset_buffer_open ();
|
||||||
|
weechat_buffer_set (fset_buffer, "display", "1");
|
||||||
|
fset_option_filter_options (argv_eol[1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return WEECHAT_RC_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user