summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-06-03 14:01:05 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2022-06-03 14:01:05 +0200
commitc972e406af6e8658be8196d18aa312bbd6aaf7e1 (patch)
tree05b0e54531a1e3c1cbe8f49c93b4f67fe32e60db
parentb76e2e7fb7eb7d9415fd9dc72134fda048fecd46 (diff)
Also defer redisplay
-rw-r--r--corfu.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/corfu.el b/corfu.el
index 25dbfa2..5152819 100644
--- a/corfu.el
+++ b/corfu.el
@@ -492,10 +492,10 @@ A scroll bar is displayed from LO to LO+BAR."
(defun corfu--popup-hide ()
"Hide Corfu popup."
(when (frame-live-p corfu--frame)
- ;; Redisplay such that the input becomes immediately visible before the popup
- ;; hiding, which is slow (Issue #48). See also corresponding vertico#89.
- (redisplay)
(run-at-time 0 nil (lambda ()
+ ;; Redisplay such that the input becomes immediately visible before the popup
+ ;; hiding, which is slow (Issue #48). See also corresponding vertico#89.
+ (redisplay)
(when (frame-live-p corfu--frame)
(make-frame-invisible corfu--frame)
(with-current-buffer (window-buffer (frame-root-window corfu--frame))