We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1ed5a8 commit 512a64dCopy full SHA for 512a64d
src/codemirrorCommands.ts
@@ -99,6 +99,7 @@ export class VimEditorManager {
99
// we override `hasFocus` handler to ensure it is taken into account.
100
const cm = getCM(view)!;
101
cm.on('vim-mode-change', () => {
102
+ if (!cm.state.vim) return;
103
editor.host.dataset.jpVimModeName = cm.state.vim.mode;
104
});
105
mirrorEditor.hasFocus = () => {
src/labCommands.ts
@@ -180,6 +180,7 @@ export function addNotebookCommands(
180
return;
181
}
182
const vim = cm.state.vim;
183
+ if (!vim) return;
184
185
// Get the current editor state
186
if (
0 commit comments