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

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

[elpa] externals/vertico edf6a06 08/11: Do not always overwrite resize-m


From: Protesilaos Stavrou
Subject: [elpa] externals/vertico edf6a06 08/11: Do not always overwrite resize-mini-windows (See #5)
Date: Thu, 8 Apr 2021 07:11:16 -0400 (EDT)

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

    Do not always overwrite resize-mini-windows (See #5)
    
    We must ensure that the variable is non-nil such that resizing happens. The 
user
    may prefer to set the variable to t in order to grow and shrink.
---
 vertico.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vertico.el b/vertico.el
index a5790e7..66cc941 100644
--- a/vertico.el
+++ b/vertico.el
@@ -482,9 +482,9 @@
   (setq vertico--input t
         vertico--candidates-ov (make-overlay (point-max) (point-max) nil t t)
         vertico--count-ov (make-overlay (point-min) (point-min) nil t t))
-  (setq-local orderless-skip-highlighting t ;; Orderless optimization
+  (setq-local resize-mini-windows (or resize-mini-windows 'grow-only) ;; Must 
be non-nil
+              orderless-skip-highlighting t ;; Orderless optimization
               truncate-lines nil
-              resize-mini-windows 'grow-only
               max-mini-window-height 1.0)
   (use-local-map vertico-map)
   (add-hook 'post-command-hook #'vertico--exhibit -99 'local))



reply via email to

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