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

core: fix completion template used in command completion when first argument in template has pipes

This commit is contained in:
Sebastien Helleu
2014-02-14 14:50:31 +01:00
parent c25bd9c26b
commit e782020b14
2 changed files with 19 additions and 8 deletions
+2 -2
View File
@@ -482,7 +482,7 @@ hook_command_build_completion (struct t_hook_command *hook_command)
{
/*
* build static part of template: it's first argument(s) which does not
* contain "%" or "|"
* contain "%"
*/
last_space = NULL;
ptr_template = hook_command->cplt_templates[i];
@@ -493,7 +493,7 @@ hook_command_build_completion (struct t_hook_command *hook_command)
last_space = ptr_template;
break;
}
else if ((ptr_template[0] == '%') || (ptr_template[0] == '|'))
else if (ptr_template[0] == '%')
break;
ptr_template = utf8_next_char (ptr_template);
}