1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

fset: add option fset.look.sort

This commit is contained in:
Sébastien Helleu
2017-06-02 20:03:00 +02:00
parent dc2720d916
commit 6f27eccc84
5 changed files with 142 additions and 114 deletions
+10
View File
@@ -712,6 +712,16 @@ fset_buffer_input_cb (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
/* change sort of options */
if (strncmp (input_data, "s:", 2) == 0)
{
if (input_data[2])
weechat_config_option_set (fset_config_look_sort, input_data + 2, 1);
else
weechat_config_option_reset (fset_config_look_sort, 1);
return WEECHAT_RC_OK;
}
/* execute action on an option */
for (i = 0; actions[i][0]; i++)
{