diff options
author | Conrad Irwin <conrad.irwin@gmail.com> | 2009-06-07 02:21:58 +0100 |
---|---|---|
committer | Conrad Irwin <conrad.irwin@gmail.com> | 2009-06-07 02:21:58 +0100 |
commit | 64e2adfe87d167f75f45471bb16cb6846edee75e (patch) | |
tree | 6e82e58aa85cb66161804b0d00e14982d15f1d96 /common/content/events.js | |
parent | 41aed95c052028dbf8d370b1c4f4dd6c1a0744f1 (diff) | |
download | pentadactyl-64e2adfe87d167f75f45471bb16cb6846edee75e.tar.gz |
Fix macros.
Spaces are no-longer replaced by <s,
@q works, even though @: is mapped.
Diffstat (limited to 'common/content/events.js')
-rw-r--r-- | common/content/events.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/common/content/events.js b/common/content/events.js index 155b99a7..94b7c8d1 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -972,8 +972,6 @@ function Events() //{{{ } else if (keyname == "nop") string = "<Nop>"; - else if (keyname == "space") - ; else if (keyCode = key_code[keyname]) charCode = 0; else // an invalid key like <A-xxx> was found, stop propagation here (like Vim) @@ -1542,6 +1540,8 @@ function Events() //{{{ { map = input.pendingMap; input.pendingMap = null; + if (map && map.flags & Mappings.flags.ARGUMENT) + input.pendingArgMap = map; } // counts must be at the start of a complete mapping (10j -> go 10 lines down) @@ -1558,8 +1558,6 @@ function Events() //{{{ input.buffer = ""; let map = input.pendingArgMap; input.pendingArgMap = null; - // FIXME. - key = key.replace(/^<S-([A-Z])>$/, "$1"); if (key != "<Esc>" && key != "<C-[>") { if (modes.isReplaying && !waitForPageLoaded()) |