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

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

[elpa] externals/vertico dfc9c06 1/2: vertico--resize-window: Do not gro


From: Protesilaos Stavrou
Subject: [elpa] externals/vertico dfc9c06 1/2: vertico--resize-window: Do not grow when height=0
Date: Mon, 10 May 2021 09:31:12 -0400 (EDT)

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

    vertico--resize-window: Do not grow when height=0
---
 vertico.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vertico.el b/vertico.el
index 597b062..e02983a 100644
--- a/vertico.el
+++ b/vertico.el
@@ -397,7 +397,9 @@
            (dp (- (max (cdr (window-text-pixel-size))
                        (* (default-line-height) (1+ (if resize height 
vertico-count))))
                   (window-pixel-height))))
-      (when (or (> dp 0) (eq resize t)) (window-resize nil dp nil nil 
'pixelwise)))))
+      (when (and (or (/= height 0) (< dp 0))
+                 (or (> dp 0) (eq resize t)))
+        (window-resize nil dp nil nil 'pixelwise)))))
 
 (defun vertico--display-count ()
   "Update count overlay `vertico--count-ov'."



reply via email to

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