aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorStephen Blott2016-03-26 11:27:55 +0000
committerStephen Blott2016-03-26 11:27:55 +0000
commit18b323f96796a02b4ef36b7041a8cac18b0c1fbd (patch)
treec5bed84d4ab84790491d4f0d7762c9e5c2019046 /content_scripts
parentaa8f568c6c3be795c17c3b5107a8a8c70fc6e930 (diff)
downloadvimium-18b323f96796a02b4ef36b7041a8cac18b0c1fbd.tar.bz2
Pass count to find commands.
With this change, now *every* front-end command either accepts a count argument, or or it doesn't accept a count at all.
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vimium_frontend.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 66eebfdd..0a683083 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -503,8 +503,8 @@ findAndFocus = (backwards) ->
else
HUD.showForDuration("No matches for '#{FindMode.query.rawQuery}'", 1000)
-performFind = -> findAndFocus false
-performBackwardsFind = -> findAndFocus true
+performFind = (count) -> findAndFocus false for [0...count] by 1
+performBackwardsFind = (count) -> findAndFocus true for [0...count] by 1
getLinkFromSelection = ->
node = window.getSelection().anchorNode