branch: externals/vertico commit dfc9c06ef816b28983c587faf854c4316e3a90f6 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@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'."