1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 06:14:11 +01:00

Preserve file/line information with saved ex commands (:au, :com, :map -ex).

This commit is contained in:
Kris Maglione
2010-10-05 15:29:18 -04:00
parent 2ee74581d1
commit 7f574a512f
8 changed files with 126 additions and 119 deletions

View File

@@ -384,9 +384,9 @@ const Mappings = Module("mappings", {
}
else if (args["-ex"]) {
rhs = ["-ex", rhs];
action = function (count) {
dactyl.execute(commands.replaceTokens(rhs[1], { count: count }));
};
action = function action(count)
dactyl.execute(commands.replaceTokens(rhs[1], { count: count }), null, true, action.sourcing);
action.sourcing = io.sourcing && update({}, io.sourcing);
}
else {
rhs = [events.canonicalKeys(rhs)];