Skip to content

Commit

Permalink
Fix for attempting to update editor when there was none. (#95)
Browse files Browse the repository at this point in the history
This lead to uncaught exception breaking application
of vim dataset flag on notebooks, and thus breaking
the Escape and commands in notebooks opened afterwards.
  • Loading branch information
krassowski committed Aug 1, 2023
1 parent 169dc35 commit 9aa55aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/codemirrorCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ export class VimEditorManager {
}

updateLastActive() {
if (!this._lastActiveEditor) {
return;
}
this.modifyEditor(this._lastActiveEditor);
}

Expand Down Expand Up @@ -161,6 +164,9 @@ export class VimCellManager extends VimEditorManager {
}

updateLastActive() {
if (!this._lastActiveCell) {
return;
}
this.modifyCell(this._lastActiveCell);
}

Expand Down

0 comments on commit 9aa55aa

Please sign in to comment.