1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 16:53:14 +02:00

Fix bug with repeat of last completion ("%*"), which failed when many templates are used in completion

This commit is contained in:
Sebastien Helleu
2011-03-10 17:38:18 +01:00
parent df8a678995
commit adae98e94d
2 changed files with 5 additions and 4 deletions
+3 -1
View File
@@ -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
+2 -3
View File
@@ -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);