diff --git a/manifest.json b/manifest.json index e5ba380..80d35fd 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "better-word-count", "name": "Better Word Count", - "version": "0.3.0", + "version": "0.3.1", "description": "Counts the words of selected text in the editor.", "author": "Luke Leppan", "authorUrl": "https://lukeleppan.com", diff --git a/package.json b/package.json index 6ec8b03..c3f9c8e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "better-word-count", - "version": "0.3.0", + "version": "0.3.1", "description": "Counts the words of selected text in the editor.", "main": "main.js", "scripts": { diff --git a/src/main.ts b/src/main.ts index 2516804..0ae79ac 100644 --- a/src/main.ts +++ b/src/main.ts @@ -38,7 +38,7 @@ export default class BetterWordCount extends Plugin { this.currentFile.extension === "md" && !this.recentlyTyped ) { - const contents = await this.app.vault.read(this.currentFile); + const contents = await this.app.vault.cachedRead(this.currentFile); this.updateWordCount(contents); } else if (!this.recentlyTyped) { this.updateWordCount("");