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

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

[elpa] externals/corfu 2e90ff1324: Add redisplay hack


From: ELPA Syncer
Subject: [elpa] externals/corfu 2e90ff1324: Add redisplay hack
Date: Thu, 13 Jan 2022 15:57:23 -0500 (EST)

branch: externals/corfu
commit 2e90ff13242cc8a264cf13a777f1eed00936f0f8
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Add redisplay hack
---
 corfu.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/corfu.el b/corfu.el
index b91ce05ed7..f9197653ee 100644
--- a/corfu.el
+++ b/corfu.el
@@ -424,7 +424,11 @@ The completion backend can override this with
       (make-frame-invisible corfu--frame))
     (set-frame-position corfu--frame x y)
     (set-frame-size corfu--frame width height t)
-    (make-frame-visible corfu--frame)))
+    (unless (frame-visible-p corfu--frame)
+      ;; HACK: Force redisplay, otherwise the popup somtimes
+      ;; does not display content.
+      (redisplay)
+      (make-frame-visible corfu--frame))))
 
 (defun corfu--popup-show (pos off width lines &optional curr lo bar)
   "Show LINES as popup at POS - OFF.



reply via email to

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