From 10a91825fc2b51078f94f01794cbc7e41a81cd8e Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Wed, 20 Jan 2021 23:17:11 -0500 Subject: [PATCH] ace2_inner: Fix argument bug in `execCommand()` This fixes a bug introduced in commit c38c34bef47a74467394797b34165641a87ac620. --- src/static/js/ace2_inner.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index b03365205..95db2c14f 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -649,12 +649,10 @@ function Ace2Inner() { const execCommand = (cmd, ...args) => { cmd = cmd.toLowerCase(); - // TODO: Rhansen to check this logic. - const cmdArgs = args; if (CMDS[cmd]) { inCallStackIfNecessary(cmd, () => { fastIncorp(9); - CMDS[cmd](CMDS, ...cmdArgs); + CMDS[cmd](...args); }); } };