mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 10:43:13 +02:00
Fixed completion for command handlers (now empty completion_template means nick completion, "-" string means no completion at all)
This commit is contained in:
@@ -820,7 +820,8 @@ completion_build_list (t_completion *completion)
|
||||
int max_arg, i;
|
||||
|
||||
completion_get_command_infos (completion, &template, &max_arg);
|
||||
if (!template || (completion->base_command_arg > max_arg))
|
||||
if (!template || (strcmp (template, "-") == 0) ||
|
||||
(completion->base_command_arg > max_arg))
|
||||
{
|
||||
completion_stop (completion);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user