1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 22:54:12 +01:00

Fix macros.

Spaces are no-longer replaced by <s,

@q works, even though @: is mapped.
This commit is contained in:
Conrad Irwin
2009-06-07 02:21:58 +01:00
parent 41aed95c05
commit 64e2adfe87

View File

@@ -972,8 +972,6 @@ function Events() //{{{
} }
else if (keyname == "nop") else if (keyname == "nop")
string = "<Nop>"; string = "<Nop>";
else if (keyname == "space")
;
else if (keyCode = key_code[keyname]) else if (keyCode = key_code[keyname])
charCode = 0; charCode = 0;
else // an invalid key like <A-xxx> was found, stop propagation here (like Vim) else // an invalid key like <A-xxx> was found, stop propagation here (like Vim)
@@ -1542,6 +1540,8 @@ function Events() //{{{
{ {
map = input.pendingMap; map = input.pendingMap;
input.pendingMap = null; 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) // counts must be at the start of a complete mapping (10j -> go 10 lines down)
@@ -1558,8 +1558,6 @@ function Events() //{{{
input.buffer = ""; input.buffer = "";
let map = input.pendingArgMap; let map = input.pendingArgMap;
input.pendingArgMap = null; input.pendingArgMap = null;
// FIXME.
key = key.replace(/^<S-([A-Z])>$/, "$1");
if (key != "<Esc>" && key != "<C-[>") if (key != "<Esc>" && key != "<C-[>")
{ {
if (modes.isReplaying && !waitForPageLoaded()) if (modes.isReplaying && !waitForPageLoaded())