Skip to content

Commit

Permalink
Merge pull request #13 from anselmwang/fix_for_obsidian_v0.15.6
Browse files Browse the repository at this point in the history
fix: continue fix Obsidian v.15.*
  • Loading branch information
yuanotes authored Aug 1, 2022
2 parents aaed608 + 45b6466 commit a7e3fd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default class VimIMSwitchPlugin extends Plugin {
if (this.cmEditor) {
// default is normal mode, try to deactivate the IM.
await this.deactivateIM();
this.cmEditor.off("vim-mode-change", this.onVimModeChange);
this.cmEditor.on("vim-mode-change", this.onVimModeChange);
}
});
Expand All @@ -66,6 +67,7 @@ export default class VimIMSwitchPlugin extends Plugin {
if (this.cmEditor) {
// default is normal mode, try to deactivate the IM.
await this.deactivateIM();
this.cmEditor.off("vim-mode-change", this.onVimModeChange);
this.cmEditor.on("vim-mode-change", this.onVimModeChange);
}
}
Expand Down

0 comments on commit a7e3fd8

Please sign in to comment.