Skip to content

Commit

Permalink
fix: Pass additional arguments for command.exec (#4723)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnester committed May 30, 2022
1 parent d5d6f9a commit 3b36762
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ace/commands/command_manager.js
Expand Up @@ -21,7 +21,10 @@ var CommandManager = function(platform, commands) {
MultiHashHandler.call(this, commands, platform);
this.byName = this.commands;
this.setDefaultHandler("exec", function(e) {
return e.command.exec(e.editor, e.args || {});
if (!e.args) {
return e.command.exec(e.editor, {}, e.event, true);
}
return e.command.exec(e.editor, e.args, e.event, false);
});
};

Expand Down

0 comments on commit 3b36762

Please sign in to comment.