summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-07-30 08:50:30 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-07-30 08:50:30 +0200
commitbb39455591b9057caf2bdaa638cb01501c9e8a8a (patch)
tree4963f4d60a05706e84ca2e2547323234bf62ba59
parent47b9c2b9e220d52c3de52bad22cbf3d437ac7c7d (diff)
downloadweechat-bb39455591b9057caf2bdaa638cb01501c9e8a8a.zip
core: fix bug in build of static parts of completions for commands
-rw-r--r--src/core/wee-hook.c3
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);