diff --git a/main.ts b/main.ts index 2a1471b..5ca4302 100644 --- a/main.ts +++ b/main.ts @@ -444,6 +444,7 @@ export default class VimrcPlugin extends Plugin { const editor = view.editor; const command = availableCommands[commandName]; const {callback, checkCallback, editorCallback, editorCheckCallback} = command; + editor.focus(); // editor callbacks expect focus if (editorCheckCallback) editorCheckCallback(false, editor, view); else if (editorCallback)