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

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

[elpa] externals/vertico a385330 4/4: vertico--resize-window: Minor clea


From: ELPA Syncer
Subject: [elpa] externals/vertico a385330 4/4: vertico--resize-window: Minor cleanup
Date: Wed, 7 Jul 2021 15:57:19 -0400 (EDT)

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

    vertico--resize-window: Minor cleanup
---
 vertico.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vertico.el b/vertico.el
index 59e64a6..05e72cc 100644
--- a/vertico.el
+++ b/vertico.el
@@ -477,10 +477,10 @@ See `resize-mini-windows' for documentation."
 
 (defun vertico--resize-window (height)
   "Resize active minibuffer window to HEIGHT."
-  (unless vertico-resize
-    (setq height (max height vertico-count)))
   (setq-local truncate-lines (< (point-max) (- (window-width) 4)))
   (unless (frame-root-window-p (active-minibuffer-window))
+    (unless vertico-resize
+      (setq height (max height vertico-count)))
     (let* ((window-resize-pixelwise t)
            (dp (- (max (cdr (window-text-pixel-size))
                        (* (default-line-height) (1+ height)))



reply via email to

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