Fix: command is broken

This commit is contained in:
eight 2018-11-21 21:31:08 +08:00
parent 872f34f999
commit 0920569673

View File

@ -230,7 +230,7 @@
// editor commands
for (const name of ['save', 'toggleStyle', 'nextEditor', 'prevEditor']) {
CodeMirror.commands[name] = () => editor[name]();
CodeMirror.commands[name] = (...args) => editor[name](...args);
}
// CodeMirror convenience commands