[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico 4a90297 2/2: Do not redisplay during initializa
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vertico 4a90297 2/2: Do not redisplay during initialization, since this leads to flicker. |
Date: |
Sat, 24 Jul 2021 06:57:23 -0400 (EDT) |
branch: externals/vertico
commit 4a9029714e847832d3ecb3ae74a7049306924f2e
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Do not redisplay during initialization, since this leads to flicker.
---
vertico.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vertico.el b/vertico.el
index e9e1edc..2fb69ab 100644
--- a/vertico.el
+++ b/vertico.el
@@ -314,8 +314,8 @@ The function is configured by BY, BSIZE, BINDEX, BPRED and
PRED."
"Recompute candidates given PT, CONTENT, BOUNDS and METADATA."
;; Redisplay the minibuffer such that the input becomes immediately
;; visible before the expensive candidate recomputation is performed (Issue
#89).
- ;; XXX Disabled for now, leads to flicker.
- ;;(redisplay)
+ ;; Do not redisplay during initialization, since this leads to flicker.
+ (when (consp vertico--input) (redisplay))
(pcase-let* ((field (substring content (car bounds) (+ pt (cdr bounds))))
;; `minibuffer-completing-file-name' has been obsoleted by the
completion category
(completing-file (eq 'file (completion-metadata-get metadata
'category)))