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

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

[elpa] externals/vertico e215f09b2d 4/5: vertico-grid: Do not display em


From: ELPA Syncer
Subject: [elpa] externals/vertico e215f09b2d 4/5: vertico-grid: Do not display empty lines
Date: Sun, 2 Jan 2022 10:58:00 -0500 (EST)

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

    vertico-grid: Do not display empty lines
---
 extensions/vertico-grid.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extensions/vertico-grid.el b/extensions/vertico-grid.el
index c3b5f2d2b3..0c98fdfa06 100644
--- a/extensions/vertico-grid.el
+++ b/extensions/vertico-grid.el
@@ -110,7 +110,7 @@ When scrolling beyond this limit, candidates may be 
truncated."
                          (string-width (or (nth (+ row (* col vertico-count)) 
cands) ""))))))
     (dotimes (col (1- vertico-grid--columns))
       (cl-incf (aref width (1+ col)) (+ (aref width col) sep)))
-    (cl-loop for row from 0 to (1- vertico-count) collect
+    (cl-loop for row from 0 to (1- (min vertico-count vertico--total)) collect
              (let ((line (list "\n")))
                (cl-loop for col from (1- vertico-grid--columns) downto 0 do
                         (when-let (cand (nth (+ row (* col vertico-count)) 
cands))



reply via email to

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