summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--src/gui/gui-completion.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ee17875c..8198d22fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,12 +1,14 @@
WeeChat ChangeLog
=================
Sébastien Helleu <flashcode@flashtux.org>
-v0.3.5-dev, 2011-03-09
+v0.3.5-dev, 2011-03-10
Version 0.3.5 (under dev!)
--------------------------
+* core: fix bug with repeat of last completion ("%*"), which failed when many
+ templates are used in completion
* core: allow list of buffers in command /filter (exclusion with prefix "!")
(task #10880)
* core: reload file with certificate authorities when option
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);