summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-03-10 17:38:18 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-03-10 17:38:18 +0100
commitadae98e94d58ebc29dd02d9404dfc7593716baa8 (patch)
tree90edd1be662882318651b43aa2029d5a5fa51515 /src
parentdf8a6789957a614586d37cf533a82e6ad2f333ab (diff)
downloadweechat-adae98e94d58ebc29dd02d9404dfc7593716baa8.zip
Fix bug with repeat of last completion ("%*"), which failed when many templates are used in completion
Diffstat (limited to 'src')
-rw-r--r--src/gui/gui-completion.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/gui-completion.c b/src/gui/gui-completion.c
index 17d57fc30..6b1f5b2a6 100644
--- a/src/gui/gui-completion.c
+++ b/src/gui/gui-completion.c
@@ -588,11 +588,10 @@ gui_completion_build_list (struct t_gui_completion *completion)
}
if (repeat_last)
{
- pos_space = rindex (HOOK_COMMAND(ptr_hook, completion), ' ');
+ pos_space = rindex (template, ' ');
gui_completion_build_list_template (completion,
(pos_space) ?
- pos_space + 1 : HOOK_COMMAND(ptr_hook,
- completion),
+ pos_space + 1 : template,
ptr_hook->plugin);
}
free (template);