mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
ace2_inner: Fix argument bug in execCommand()
This fixes a bug introduced in commit
c38c34bef4
.
This commit is contained in:
parent
aeedaac04e
commit
10a91825fc
1 changed files with 1 additions and 3 deletions
|
@ -649,12 +649,10 @@ function Ace2Inner() {
|
||||||
|
|
||||||
const execCommand = (cmd, ...args) => {
|
const execCommand = (cmd, ...args) => {
|
||||||
cmd = cmd.toLowerCase();
|
cmd = cmd.toLowerCase();
|
||||||
// TODO: Rhansen to check this logic.
|
|
||||||
const cmdArgs = args;
|
|
||||||
if (CMDS[cmd]) {
|
if (CMDS[cmd]) {
|
||||||
inCallStackIfNecessary(cmd, () => {
|
inCallStackIfNecessary(cmd, () => {
|
||||||
fastIncorp(9);
|
fastIncorp(9);
|
||||||
CMDS[cmd](CMDS, ...cmdArgs);
|
CMDS[cmd](...args);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue