From b0b939ce286e01df3694470ad2e43e09a8ec4c50 Mon Sep 17 00:00:00 2001 From: lukeleppan Date: Wed, 11 Nov 2020 11:32:20 +0200 Subject: [PATCH] first bit #2 --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("");