aboutsummaryrefslogtreecommitdiffstats
path: root/linkHints.js
diff options
context:
space:
mode:
authorjez2010-12-30 14:58:38 +0800
committerjez2010-12-31 05:55:24 +0800
commitf9998b6d62d5c0fa2b7e262a5b698c5dc3a1252e (patch)
treea8b1d88ff21572ffe5f6d69252903a7b3b7da1e0 /linkHints.js
parent76db93e6723a563fe8b44a5df0c11826268c510d (diff)
downloadvimium-f9998b6d62d5c0fa2b7e262a5b698c5dc3a1252e.tar.bz2
Reset hintKeystrokeQueue when user enters filtering link text
Diffstat (limited to 'linkHints.js')
-rw-r--r--linkHints.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/linkHints.js b/linkHints.js
index db79b782..cff513db 100644
--- a/linkHints.js
+++ b/linkHints.js
@@ -428,6 +428,9 @@ function initializeLinkHints() {
matchString = linkHints.hintKeystrokeQueue.join("");
linksMatched = linkHints.highlightLinkMatches(matchString);
} else {
+ // since we might renumber the hints, the current hintKeyStrokeQueue
+ // should be rendered invalid (i.e. reset).
+ linkHints.hintKeystrokeQueue = [];
linkHints.linkTextKeystrokeQueue.push(keyChar);
matchString = linkHints.linkTextKeystrokeQueue.join("");
linksMatched = linkHints.filterLinkHints(matchString);