From: Daniel Carl Date: Sun, 2 Jun 2013 16:18:41 +0000 (+0200) Subject: Fixed regression in completion for counted commands. X-Git-Url: https://git.owens.tech/assets/static/git-favicon.png/assets/static/git-favicon.png/git?a=commitdiff_plain;h=427bc23f34404592368a8c36194464600976dca8;p=vimb.git 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`. --- 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) {