From 8ab389c73e98d5ff82d850656d4150a1ba4fb63c Mon Sep 17 00:00:00 2001 From: Erez Shermer Date: Thu, 21 Oct 2021 13:08:53 +0300 Subject: [PATCH] Another fix to the previous commit --- README.md | 3 +++ main.ts | 3 ++- manifest.json | 2 +- package.json | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 08f9fa5..c024d7c 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,9 @@ Relative line numbers work very nicely with [this](https://github.com/nadavspi/o ## Changelog +### 0.4.5 +Apparently the fix in version 0.4.4 was not good enough. Hopefully we're done with this issue now. + ### 0.4.4 - Fix to an error constantly displayed in the console. diff --git a/main.ts b/main.ts index 215d9fc..78357cd 100644 --- a/main.ts +++ b/main.ts @@ -129,7 +129,8 @@ export default class VimrcPlugin extends Plugin { default: break; } - this.vimStatusBar.setText(this.currentVimStatus); + if (this.settings.displayVimMode) + this.vimStatusBar.setText(this.currentVimStatus); } onunload() { diff --git a/manifest.json b/manifest.json index eabfaf8..e80fdfb 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-vimrc-support", "name": "Vimrc Support", - "version": "0.4.4", + "version": "0.4.5", "description": "Auto-load a startup file with Obsidian Vim commands.", "author": "esm", "authorUrl": "", diff --git a/package.json b/package.json index b662194..748f6c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-vimrc-support", - "version": "0.4.4", + "version": "0.4.5", "description": "Auto-load a startup file with Obsidian Vim commands.", "main": "main.js", "scripts": {