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

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

[elpa] externals/pyim 1ec45c77bb 08/26: Simplify pyim-select-word-simple


From: ELPA Syncer
Subject: [elpa] externals/pyim 1ec45c77bb 08/26: Simplify pyim-select-word-simple
Date: Sun, 26 Jun 2022 10:57:52 -0400 (EDT)

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

    Simplify pyim-select-word-simple
---
 pyim.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pyim.el b/pyim.el
index b5769f5d67..493c37e52f 100644
--- a/pyim.el
+++ b/pyim.el
@@ -460,9 +460,9 @@ FILE 的格式与 `pyim-dcache-export' 生成的文件格式相同,
 然后再删除不需要的字,由于这个词条不是常用词条,所以
 不需要保存到个人词库。"
   (interactive)
-  (if (null (pyim-process-get-candidates))
-      (pyim-process-outcome-handle 'last-char)
-    (pyim-process-outcome-handle 'candidate))
+  (if (pyim-process-get-candidates)
+      (pyim-process-outcome-handle 'candidate)
+    (pyim-process-select-last-char))
   (pyim-process-terminate))
 
 (defun pyim-select-word ()



reply via email to

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