From bb39455591b9057caf2bdaa638cb01501c9e8a8a Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 30 Jul 2011 08:50:30 +0200 Subject: [PATCH] core: fix bug in build of static parts of completions for commands --- src/core/wee-hook.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c index 88b656ac4..03066abf0 100644 --- a/src/core/wee-hook.c +++ b/src/core/wee-hook.c @@ -478,7 +478,10 @@ hook_command_build_completion (struct t_hook_command *hook_command) while (ptr_template && ptr_template[0]) { if (ptr_template[0] == ' ') + { last_space = ptr_template; + break; + } else if ((ptr_template[0] == '%') || (ptr_template[0] == '|')) break; ptr_template = utf8_next_char (ptr_template);