From 3afb5e6ee1295de6ccb043b3164b53955e8e1fc7 Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Tue, 7 Aug 2012 21:22:27 -0700 Subject: Don't show hints on `gi` if there is only one input element. --- content_scripts/vimium_frontend.coffee | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3