aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-06-03 16:15:31 +0100
committerStephen Blott2015-06-03 16:15:31 +0100
commit8dab334fa2fde9d4815ce0a12c0d2ab9dd44ff05 (patch)
treeff30bf30fd38bdb5407a3fbec33366a23d4314be /content_scripts/mode.coffee
parent6fa88abbad70c19d5f9d69acff0e16844a2629b6 (diff)
downloadvimium-8dab334fa2fde9d4815ce0a12c0d2ab9dd44ff05.tar.bz2
Also set previous position for before global mark movement.
Diffstat (limited to 'content_scripts/mode.coffee')
-rw-r--r--content_scripts/mode.coffee3
1 files changed, 1 insertions, 2 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee
index 22b6120f..86d3e011 100644
--- a/content_scripts/mode.coffee
+++ b/content_scripts/mode.coffee
@@ -52,8 +52,7 @@ class Mode
# and 2) worry about their return value.
if @options.suppressAllKeyboardEvents
for type in [ "keydown", "keypress", "keyup" ]
- do (type) =>
- handler = @options[type]
+ do (handler = @options[type]) =>
@options[type] = (event) => handler? event; @stopBubblingAndFalse
@push