diff options
-rw-r--r-- | src/core/wee-hook.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |