summaryrefslogtreecommitdiff
path: root/src/completion.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/completion.c')
-rw-r--r--src/completion.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/completion.c b/src/completion.c
index 6740284..d01207b 100644
--- a/src/completion.c
+++ b/src/completion.c
@@ -127,7 +127,6 @@ gboolean completion_create(GtkTreeModel *model, CompletionSelectFunc selfunc,
/* this prevents the first item to be placed out of view if the completion
* is shown */
- gtk_widget_show_all(comp.win);
while (gtk_events_pending()) {
gtk_main_iteration();
}
@@ -154,6 +153,8 @@ gboolean completion_create(GtkTreeModel *model, CompletionSelectFunc selfunc,
comp.active = -1;
completion_next(back);
+ gtk_widget_show_all(comp.win);
+
return true;
}