branch: externals/pyim
commit cb3bbd87e63017dfd63b34d5ee5907ee653c39c7
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>

    * 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)

Reply via email to