From: Daniel Carl Date: Thu, 19 Dec 2013 12:44:54 +0000 (+0100) Subject: Fixed none left hint mode if no hint is available (#53). X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=9b85f7bba53c15950aef31714f9a8090d5efbfe0;p=vimb.git Fixed none left hint mode if no hint is available (#53). --- diff --git a/src/hints.js b/src/hints.js index c1b3d10..b36bc0b 100644 --- a/src/hints.js +++ b/src/hints.js @@ -270,7 +270,9 @@ var VbHint = (function(){ } } - if (validHints.length === 1) { + /* if no hint is matche or only one remains fire it */ + /* fire will also handle the case when there is not valid hint found */ + if (validHints.length <= 1) { return fire(); } return focusHint(1, activeHint);