branch: externals/pyim
commit 57a522dda9868707a272a117ec8c17907f5aea59
Author: Feng Shu <tuma...@163.com>
Commit: Feng Shu <tuma...@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

Reply via email to