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

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

[elpa] externals/pyim ffa7f0f: Revert "* pyim.el (pyim-select-word:xingm


From: ELPA Syncer
Subject: [elpa] externals/pyim ffa7f0f: Revert "* pyim.el (pyim-select-word:xingma): sort char candidates when use xingma." #398
Date: Tue, 11 May 2021 00:57:12 -0400 (EDT)

branch: externals/pyim
commit ffa7f0f1638f82d500db3a9db17b983f5410a093
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    Revert "* pyim.el (pyim-select-word:xingma): sort char candidates when use 
xingma." #398
    
    This reverts commit 289860e1061fbd9ce706b6509ab5552a74b10dce.
---
 pyim.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/pyim.el b/pyim.el
index 9915c1f..08d25f8 100644
--- a/pyim.el
+++ b/pyim.el
@@ -691,9 +691,11 @@ FILE 的格式与 `pyim-dcache-export' 生成的文件格式相同,
           ;; 字符串里面剪掉。
           (delete-region (point-min) (point)))
         (pyim-entered-refresh))
-    (if (member (pyim-outcome-get) pyim-candidates)
-        (pyim-create-pyim-word (pyim-outcome-get) t)
-      (pyim-create-pyim-word (pyim-outcome-get)))
+    ;; 型码输入法,只考虑将词条保存到个人词库,用于调整词频,单字不保存。
+    (when (> (length (pyim-outcome-get)) 1)
+      (if (member (pyim-outcome-get) pyim-candidates)
+          (pyim-create-pyim-word (pyim-outcome-get) t)
+        (pyim-create-pyim-word (pyim-outcome-get))))
     (pyim-terminate-translation)
     ;; pyim 使用这个 hook 来处理联想词。
     (run-hooks 'pyim-select-finish-hook)))



reply via email to

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