aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJez Ng2012-08-07 21:22:27 -0700
committerJez Ng2012-08-21 00:25:28 -0700
commit3afb5e6ee1295de6ccb043b3164b53955e8e1fc7 (patch)
tree3331927c5e768a2353faf6cd876404e64f196b70
parent6af96249d408d3a4131bafc5a6b83b46d6b90523 (diff)
downloadvimium-3afb5e6ee1295de6ccb043b3164b53955e8e1fc7.tar.bz2
Don't show hints on `gi` if there is only one input element.
-rw-r--r--content_scripts/vimium_frontend.coffee2
1 files changed, 2 insertions, 0 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 1ab938fe..2fa6b93f 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -314,6 +314,8 @@ extend window,
visibleInputs[selectedInputIndex].element.focus()
+ return if visibleInputs.length == 1
+
hintMarkers = (LinkHints.createMarkerFor(el) for el in visibleInputs)
for marker, idx in hintMarkers