Fix to an error displayed on the console

This commit is contained in:
Erez Shermer 2021-10-20 13:26:59 +03:00
parent 5a23b758a3
commit 24044b3bf7
4 changed files with 7 additions and 3 deletions

View file

@ -173,6 +173,9 @@ Relative line numbers work very nicely with [this](https://github.com/nadavspi/o
## Changelog
### 0.4.4
- Fix to an error constantly displayed in the console.
### 0.4.3
- Another fix to "fixed keyboard layout in Normal mode".
- Added escape character backslash to surround command.

View file

@ -85,7 +85,8 @@ export default class VimrcPlugin extends Plugin {
this.app.workspace.on('codemirror', (cm: CodeMirror.Editor) => {
cm.on('vim-mode-change', (modeObj: any) => {
this.logVimModeChange(modeObj);
if (modeObj)
this.logVimModeChange(modeObj);
});
this.defineFixedLayout(cm);
});

View file

@ -1,7 +1,7 @@
{
"id": "obsidian-vimrc-support",
"name": "Vimrc Support",
"version": "0.4.3",
"version": "0.4.4",
"description": "Auto-load a startup file with Obsidian Vim commands.",
"author": "esm",
"authorUrl": "",

View file

@ -1,6 +1,6 @@
{
"name": "obsidian-vimrc-support",
"version": "0.4.3",
"version": "0.4.4",
"description": "Auto-load a startup file with Obsidian Vim commands.",
"main": "main.js",
"scripts": {