Skip to content

Commit 3b36762

Browse files
authored
fix: Pass additional arguments for command.exec (#4723)
1 parent d5d6f9a commit 3b36762

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/ace/commands/command_manager.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ var CommandManager = function(platform, commands) {
2121
MultiHashHandler.call(this, commands, platform);
2222
this.byName = this.commands;
2323
this.setDefaultHandler("exec", function(e) {
24-
return e.command.exec(e.editor, e.args || {});
24+
if (!e.args) {
25+
return e.command.exec(e.editor, {}, e.event, true);
26+
}
27+
return e.command.exec(e.editor, e.args, e.event, false);
2528
});
2629
};
2730

0 commit comments

Comments
 (0)