emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/flx 61dcc4f563 089/182: Reset caches on file reload.


From: ELPA Syncer
Subject: [nongnu] elpa/flx 61dcc4f563 089/182: Reset caches on file reload.
Date: Tue, 13 Dec 2022 03:59:33 -0500 (EST)

branch: elpa/flx
commit 61dcc4f563b9a335716c23dcefb247b54ea477c3
Author: Le Wang <le.wang@agworld.com.au>
Commit: Le Wang <le.wang@agworld.com.au>

    Reset caches on file reload.
    
    - #52
---
 flx.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/flx.el b/flx.el
index 81c3e88855..ba96806b97 100644
--- a/flx.el
+++ b/flx.el
@@ -339,12 +339,17 @@ SCORE of nil means to clear the properties."
 
 
 
-(defvar flx-file-cache (flx-make-filename-cache)
+(defvar flx-file-cache nil
   "Cached heatmap info about strings.")
 
-(defvar flx-strings-cache (flx-make-string-cache)
+;;; reset value on every file load.
+(setq flx-file-cache (flx-make-filename-cache))
+
+(defvar flx-strings-cache nil
   "Cached heatmap info about filenames.")
 
+;;; reset value on every file load.
+(setq flx-strings-cache (flx-make-string-cache))
 
 
 (provide 'flx)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]