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("");