From: Daniel Carl Date: Sat, 22 Dec 2012 23:43:15 +0000 (+0100) Subject: Do not add inputbox observers if hint will be fired. X-Git-Url: https://git.owens.tech/about.html/about.html/git?a=commitdiff_plain;h=e8f998d384578e9fac75a3e85448fee3313b1840;p=vimb.git Do not add inputbox observers if hint will be fired. --- diff --git a/src/hints.c b/src/hints.c index 8e9b9c1..8f81cdb 100644 --- a/src/hints.c +++ b/src/hints.c @@ -128,10 +128,10 @@ void hints_create(const gchar* input, guint mode, const guint prefixLength) if (g_list_length(hints->list) == 1) { /* only one element hinted - we can fire it */ hints_fire(1); + } else { + /* add event hanlder for inputbox */ + hints_observe_input(TRUE); } - - /* add event hanlder for inputbox */ - hints_observe_input(TRUE); } void hints_update(const gulong num)