summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--corfu.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/corfu.el b/corfu.el
index b91ce05..f919765 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.