[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 57a522d 1/3: * pyim-dhashcache.el (pyim-dhashcache
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 57a522d 1/3: * pyim-dhashcache.el (pyim-dhashcache-update-code2word): respect force arg. |
Date: |
Fri, 19 Nov 2021 00:57:25 -0500 (EST) |
branch: externals/pyim
commit 57a522dda9868707a272a117ec8c17907f5aea59
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* pyim-dhashcache.el (pyim-dhashcache-update-code2word): respect force arg.
---
pyim-dhashcache.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyim-dhashcache.el b/pyim-dhashcache.el
index b402bba..f70589c 100644
--- a/pyim-dhashcache.el
+++ b/pyim-dhashcache.el
@@ -234,8 +234,8 @@ DCACHE 是一个 code -> words 的 hashtable.
(let* ((code2word-file (pyim-dhashcache-get-path 'pyim-dhashcache-code2word))
(word2code-file (pyim-dhashcache-get-path 'pyim-dhashcache-word2code))
(code2word-md5-file (pyim-dhashcache-get-path
'pyim-dhashcache-code2word-md5)))
- (when (and (or force (not (equal dicts-md5
(pyim-dcache-get-value-from-file code2word-md5-file))))
- (not pyim-dhashcache-update-code2word-running-p))
+ (when (or force (and (not (equal dicts-md5
(pyim-dcache-get-value-from-file code2word-md5-file)))
+ (not pyim-dhashcache-update-code2word-running-p)))
(setq pyim-dhashcache-update-code2word-running-p t)
;; use hashtable
(async-start