diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-03-10 17:38:18 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-03-10 17:38:18 +0100 |
commit | adae98e94d58ebc29dd02d9404dfc7593716baa8 (patch) | |
tree | 90edd1be662882318651b43aa2029d5a5fa51515 /src | |
parent | df8a6789957a614586d37cf533a82e6ad2f333ab (diff) | |
download | weechat-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.c | 5 |
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); |