1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 07:24:13 +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")
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())