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

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

[elpa] externals/pyim 95a4d01768 09/26: Simplify pyim-select-word


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

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

    Simplify pyim-select-word
---
 pyim.el | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/pyim.el b/pyim.el
index 493c37e52f..ab4fcb4139 100644
--- a/pyim.el
+++ b/pyim.el
@@ -469,11 +469,10 @@ FILE 的格式与 `pyim-dcache-export' 生成的文件格式相同,
   "从选词框中选择当前词条,然后删除该词条对应拼音。"
   (interactive)
   (pyim-process-create-code-criteria)
-  (if (null (pyim-process-get-candidates))  ; 如果没有选项,输入空格
-      (progn
-        (pyim-process-outcome-handle 'last-char)
-        (pyim-process-terminate))
-    (pyim-process-select-word (pyim-scheme-current))))
+  (if (pyim-process-get-candidates)
+      (pyim-process-select-word (pyim-scheme-current))
+    ;; 如果没有选项,输入空格
+    (pyim-process-select-last-char)))
 
 (defun pyim-select-word-by-number (&optional num)
   "使用数字编号来选择对应的词条。"



reply via email to

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