[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim cb3bbd87e6 4/4: * pyim-process.el (pyim-process-ge
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim cb3bbd87e6 4/4: * pyim-process.el (pyim-process-get-candidates-async): Add more limit to show ui. |
Date: |
Mon, 6 Jun 2022 23:57:52 -0400 (EDT) |
branch: externals/pyim
commit cb3bbd87e63017dfd63b34d5ee5907ee653c39c7
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* pyim-process.el (pyim-process-get-candidates-async): Add more limit to
show ui.
---
pyim-process.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pyim-process.el b/pyim-process.el
index 3836909b28..9c636383a2 100644
--- a/pyim-process.el
+++ b/pyim-process.el
@@ -392,13 +392,14 @@ entered (nihaom) 的第一个候选词。
(lambda (async-return)
(with-current-buffer buffer
(when (and pyim-process-translating
+ (not (input-pending-p))
(equal (car async-return) pyim-imobjs))
(setq pyim-candidates
(delete-dups
`(,(car pyim-candidates)
,@(cdr async-return)
- ,@(cdr pyim-candidates)))))
- (pyim-process-ui-refresh))))))
+ ,@(cdr pyim-candidates))))
+ (pyim-process-ui-refresh)))))))
(defun pyim-process-get-candidates ()
pyim-candidates)