diff options
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); |