summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-01-07 22:20:09 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2022-01-07 22:20:09 +0100
commit6d81371db5c162c74a7971229f8029d5c60cf4a5 (patch)
treead3d64522f16b52b0a539266e921c86b5a8110a2
parent7dcb6bf6aab943507a928d878d422679e86e608e (diff)
Move redisplay call
-rw-r--r--corfu.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/corfu.el b/corfu.el
index 47787c7..66ad227 100644
--- a/corfu.el
+++ b/corfu.el
@@ -424,10 +424,7 @@ 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)
- ;; 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.
@@ -809,7 +806,10 @@ there hasn't been any input, then quit."
((and corfu--candidates continue)
(corfu--candidates-popup beg)
(corfu--echo-documentation)
- (corfu--preview-current beg end str))
+ (corfu--preview-current beg end str)
+ ;; HACK: Force redisplay, otherwise the popup somtimes
+ ;; does not display content.
+ (redisplay))
;; 4) There are no candidates & corfu-quit-no-match => Confirmation popup
((not (or corfu--candidates
;; When `corfu-quit-no-match' is a number of seconds and the auto completion wasn't