From fcb1c6954f7a8e8607a0638cca44cb293f5bb4d7 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Tue, 5 Oct 2021 16:16:01 +0200 Subject: [PATCH] Prevent test break --- src/commands/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/index.js b/src/commands/index.js index 397ce5502..6c4d0f1f3 100644 --- a/src/commands/index.js +++ b/src/commands/index.js @@ -385,7 +385,7 @@ export default () => { const editor = em.get('Editor'); if (!this.isActive(id) || options.force || !c.strict) { - result = command.callRun(editor, options); + result = editor && command.callRun(editor, options); if (id && command.stop && !command.noStop && !options.abort) { active[id] = result; }