aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrmr19932015-05-29 00:18:41 +0100
committermrmr19932015-06-10 17:21:22 +0100
commit4f0cd5ba260f9b23d70bfd816efae43dc64d1e0a (patch)
tree99cdd18d3e6ff8293d448a595d4b3c05cd524739
parent91077b021e24f5ed6a8505e4e2afb97cdc2cbbb0 (diff)
downloadvimium-4f0cd5ba260f9b23d70bfd816efae43dc64d1e0a.tar.bz2
Reduce down the HUD's match count string code
-rw-r--r--pages/hud.coffee3
1 files changed, 1 insertions, 2 deletions
diff --git a/pages/hud.coffee b/pages/hud.coffee
index 3f8eaa93..130d866f 100644
--- a/pages/hud.coffee
+++ b/pages/hud.coffee
@@ -29,9 +29,8 @@ handlers =
countElement = document.getElementById "hud-match-count"
return unless countElement? # Don't do anything if we're not in find mode.
- plural = if matchCount == 1 then "" else "es"
countText = if matchCount > 0
- " (" + matchCount + " Match#{plural})"
+ " (#{matchCount} Match#{if matchCount == 1 then "" else "es"})"
else
" (No matches)"
countElement.textContent = if showMatchText then countText else ""