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

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

[elpa] externals/vertico f3f55e4: Move redisplay call


From: ELPA Syncer
Subject: [elpa] externals/vertico f3f55e4: Move redisplay call
Date: Thu, 25 Nov 2021 12:57:34 -0500 (EST)

branch: externals/vertico
commit f3f55e4f5923fe2108a59eedb68e9989d1cef151
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Move redisplay call
---
 vertico.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/vertico.el b/vertico.el
index 4fa6deb..d587cf5 100644
--- a/vertico.el
+++ b/vertico.el
@@ -318,10 +318,6 @@ The function is configured by BY, BSIZE, BINDEX, BPRED and 
PRED."
 
 (defun vertico--recompute-candidates (pt content)
   "Recompute candidates given PT and CONTENT."
-  ;; Redisplay the minibuffer such that the input becomes immediately
-  ;; visible before the expensive candidate recomputation is performed (Issue 
#89).
-  ;; Do not redisplay during initialization, since this leads to flicker.
-  (when (consp vertico--input) (redisplay))
   (pcase-let* ((before (substring content 0 pt))
                (after (substring content pt))
                ;; bug#47678: `completion-boundaries` fails for 
`partial-completion`
@@ -417,6 +413,10 @@ The function is configured by BY, BSIZE, BINDEX, BPRED and 
PRED."
 
 (defun vertico--update-candidates (pt content)
   "Preprocess candidates given PT and CONTENT."
+  ;; Redisplay the minibuffer such that the input becomes immediately
+  ;; visible before the expensive candidate recomputation is performed (Issue 
#89).
+  ;; Do not redisplay during initialization, since this leads to flicker.
+  (when (consp vertico--input) (redisplay))
   (let ((metadata (completion-metadata (substring content 0 pt)
                                        minibuffer-completion-table
                                        minibuffer-completion-predicate)))



reply via email to

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