From: Daniel Carl Date: Mon, 24 Nov 2014 21:36:03 +0000 (+0100) Subject: Fixed duplicate hint call if filtered by label. X-Git-Url: https://git.owens.tech/assets/static/git-logo.png/assets/static/git-logo.png/git?a=commitdiff_plain;h=ea46e52e0091feb138b2f1c8a205df066539fcf1;p=vimb.git Fixed duplicate hint call if filtered by label. If hints where fired by their label, the action was done twice one tome for the hint fired by filtering and after that because of the timeout. This issue was introduced during the changes for the letter hints. --- diff --git a/src/hints.c b/src/hints.c index f5fd307..fbeb631 100644 --- a/src/hints.c +++ b/src/hints.c @@ -97,10 +97,10 @@ VbResult hints_keypress(int key) return RESULT_COMPLETE; } else { + fire_timeout(true); /* try to handle the key by the javascript */ arguments[0] = js_string_to_ref(hints.ctx, (char[]){key, '\0'}); if (call_hints_function("update", 1, arguments)) { - fire_timeout(true); return RESULT_COMPLETE; } }