diff options
| author | Stephen Blott | 2015-02-01 15:56:13 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-02-01 15:56:13 +0000 |
| commit | 7a5ace59bdc70b9fdbe9427e86319f275116925f (patch) | |
| tree | 854d5920746e1fe10cb84fcdcbf61ac59024e32f /content_scripts | |
| parent | fa9dcbab7eba2cace43ec6e31475e5d8ee5de9a0 (diff) | |
| download | vimium-7a5ace59bdc70b9fdbe9427e86319f275116925f.tar.bz2 | |
Do not show match count if there is no query.
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index f9a73f3e..b6728ce9 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -1014,11 +1014,13 @@ window.goNext = -> findAndFollowRel("next") || findAndFollowLink(nextStrings) showFindModeHUDForQuery = -> - if (findModeQueryHasResults || findModeQuery.parsedQuery.length == 0) + if findModeQuery.rawQuery and (findModeQueryHasResults || findModeQuery.parsedQuery.length == 0) plural = if findModeQuery.matchCount == 1 then "" else "es" HUD.show("/" + findModeQuery.rawQuery + " (" + findModeQuery.matchCount + " Match#{plural})") - else + else if findModeQuery.rawQuery HUD.show("/" + findModeQuery.rawQuery + " (No Matches)") + else + HUD.show("/") getCurrentRange = -> selection = getSelection() |
