This commit is contained in:
Threeinone 2026-03-26 09:08:59 +05:30 committed by GitHub
commit e5b5011259
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -480,6 +480,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)