branch: elpa/flx
commit 61dcc4f563b9a335716c23dcefb247b54ea477c3
Author: Le Wang <le.w...@agworld.com.au>
Commit: Le Wang <le.w...@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