aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorStephen Blott2015-02-01 15:36:15 +0000
committerStephen Blott2015-02-01 15:36:15 +0000
commitfa9dcbab7eba2cace43ec6e31475e5d8ee5de9a0 (patch)
tree319f22350941cef668b3d73b218c4588f40f3cc2 /content_scripts
parent4d4bdb65d3f5b1e09fe8a55593bc57215da9a4e5 (diff)
downloadvimium-fa9dcbab7eba2cace43ec6e31475e5d8ee5de9a0.tar.bz2
Find mode: report "1 Match", not "1 Matches".
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vimium_frontend.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index b76f2663..f9a73f3e 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -1015,7 +1015,8 @@ window.goNext = ->
showFindModeHUDForQuery = ->
if (findModeQueryHasResults || findModeQuery.parsedQuery.length == 0)
- HUD.show("/" + findModeQuery.rawQuery + " (" + findModeQuery.matchCount + " Matches)")
+ plural = if findModeQuery.matchCount == 1 then "" else "es"
+ HUD.show("/" + findModeQuery.rawQuery + " (" + findModeQuery.matchCount + " Match#{plural})")
else
HUD.show("/" + findModeQuery.rawQuery + " (No Matches)")