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 = ""; - else if (keyname == "space") - ; else if (keyCode = key_code[keyname]) charCode = 0; else // an invalid key like 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(/^$/, "$1"); if (key != "" && key != "") { if (modes.isReplaying && !waitForPageLoaded())