From e8f998d384578e9fac75a3e85448fee3313b1840 Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Sun, 23 Dec 2012 00:43:15 +0100
Subject: [PATCH] Do not add inputbox observers if hint will be fired.

---
 src/hints.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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)
-- 
2.20.1