aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2016-02-28 11:54:52 +0000
committerStephen Blott2016-03-05 05:38:30 +0000
commitcf7a03dc26415528bc690147ba72c08e67dd65c8 (patch)
treeb84e51c8c0c94b9ef2618aff2227598574a2aa2e
parent6e37f605fe45ee5eca03153c35c55c231e703c95 (diff)
downloadvimium-cf7a03dc26415528bc690147ba72c08e67dd65c8.tar.bz2
Key bindings; more minor tweaks.
-rw-r--r--content_scripts/vimium_frontend.coffee11
1 files changed, 5 insertions, 6 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 3220b084..2fc2dc35 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -117,15 +117,14 @@ window.initializeModes = ->
if registryEntry.repeatLimit? and registryEntry.repeatLimit < count
return unless confirm """
You have asked Vimium to perform #{count} repeats of the command: #{registryEntry.description}.\n
- Are you sure you want to continue? """
+ Are you sure you want to continue?"""
if registryEntry.isBackgroundCommand
- chrome.runtime.sendMessage { handler: "runBackgroundCommand", frameId, registryEntry, count}
+ chrome.runtime.sendMessage {handler: "runBackgroundCommand", frameId, registryEntry, count}
+ else if registryEntry.passCountToFunction
+ Utils.invokeCommandString registryEntry.command, [count]
else
- if registryEntry.passCountToFunction
- Utils.invokeCommandString registryEntry.command, [count]
- else
- Utils.invokeCommandString registryEntry.command for i in [0...count]
+ Utils.invokeCommandString registryEntry.command for i in [0...count]
# Install the permanent modes. The permanently-installed insert mode tracks focus/blur events, and
# activates/deactivates itself accordingly.