From: Daniel Carl Date: Mon, 4 Mar 2013 17:49:36 +0000 (+0100) Subject: Fixed missed counter in completion processing. X-Git-Url: https://git.owens.tech/git.owens.tech/git.owens.tech/git?a=commitdiff_plain;h=2b25fc7e5d819e2eb3f6064a6835d846a208f10b;p=vimb.git Fixed missed counter in completion processing. Remove unneeded gtk_widget_show calls. --- diff --git a/src/completion.c b/src/completion.c index ca805d4..bb8ee0d 100644 --- a/src/completion.c +++ b/src/completion.c @@ -186,7 +186,6 @@ static GList* completion_update(GList* completion, GList* active, gboolean back) for (GList *l = g_list_first(completion); l && i < max; l = l->next, i++) { gtk_widget_hide(((Completion*)l->data)->event); } - gtk_widget_show(vp.gui.compbox); i = 0; for (GList *l = g_list_last(completion); l && i < max; l = l->prev, i++) { c = l->data; @@ -204,10 +203,9 @@ static GList* completion_update(GList* completion, GList* active, gboolean back) gtk_widget_show_all(c->event); } else if (position == items || position == 1) { int i = 0; - for (GList *l = g_list_last(completion); l && i < max; l = l->prev) { + for (GList *l = g_list_last(completion); l && i < max; l = l->prev, i++) { gtk_widget_hide(((Completion*)l->data)->event); } - gtk_widget_show(vp.gui.compbox); i = 0; for (GList *l = g_list_first(completion); l && i < max; l = l->next, i++) { gtk_widget_show_all(((Completion*)l->data)->event);