From 427bc23f34404592368a8c36194464600976dca8 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sun, 2 Jun 2013 18:18:41 +0200 Subject: [PATCH] Fixed regression in completion for counted commands. The commit d95b20c introduced a regression which made it impossible to complete commands that have a count set for example `:3b`. --- src/completion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/completion.c b/src/completion.c index 8cd037d..c6ef46d 100644 --- a/src/completion.c +++ b/src/completion.c @@ -109,7 +109,7 @@ gboolean completion_complete(gboolean back) /* remove counts before command and save it to print it later in inputbox */ comps.count = g_ascii_strtoll(suffix, &command, 10); - source = g_list_sort(command_get_by_prefix(suffix), (GCompareFunc)g_strcmp0); + source = g_list_sort(command_get_by_prefix(command), (GCompareFunc)g_strcmp0); comps.completions = init_completion(comps.completions, source, prefix); g_list_free(source); } else if (type == VB_INPUT_SEARCH_FORWARD || type == VB_INPUT_SEARCH_BACKWARD) { -- 2.20.1