From 9b85f7bba53c15950aef31714f9a8090d5efbfe0 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Thu, 19 Dec 2013 13:44:54 +0100 Subject: [PATCH] Fixed none left hint mode if no hint is available (#53). --- src/hints.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.20.1