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:
@@ -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)];
|
||||
|
||||
Reference in New Issue
Block a user