[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico 81b3e3b 4/7: Respect `resize-mini-windows' set
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/vertico 81b3e3b 4/7: Respect `resize-mini-windows' set to nil |
Date: |
Sat, 10 Apr 2021 15:17:17 -0400 (EDT) |
branch: externals/vertico
commit 81b3e3bb80826c673e2dd72d7c1fef57e7e49b5d
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Respect `resize-mini-windows' set to nil
In this case do not resize the minibuffer window dynamically, try to keep it
constant at `vertico-count' height.
---
vertico.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/vertico.el b/vertico.el
index c52117c..0eced70 100644
--- a/vertico.el
+++ b/vertico.el
@@ -365,8 +365,9 @@
(apply #'concat
(and (eobp) #(" " 0 1 (cursor t)))
(and lines "\n") lines))
- (let ((delta (- (length lines) (window-height) -1)))
- (when (or (> delta 0) (eq (default-value 'resize-mini-windows) t))
+ (let* ((resize (default-value 'resize-mini-windows))
+ (delta (- (max (length lines) (if resize 0 vertico-count))
(window-height) -1)))
+ (when (or (> delta 0) (eq resize t))
(window-resize nil delta))))
(defun vertico--display-count ()
- [elpa] externals/vertico updated (5aaa5f6 -> 424a7e0), Protesilaos Stavrou, 2021/04/10
- [elpa] externals/vertico 48472e9 1/7: README: Mention the copyright assignment, Protesilaos Stavrou, 2021/04/10
- [elpa] externals/vertico 53da8b8 3/7: Truncate lines and resize manually (Fix #5), Protesilaos Stavrou, 2021/04/10
- [elpa] externals/vertico 81b3e3b 4/7: Respect `resize-mini-windows' set to nil,
Protesilaos Stavrou <=
- [elpa] externals/vertico 424a7e0 7/7: README: Fix invalid keybindings, Protesilaos Stavrou, 2021/04/10
- [elpa] externals/vertico 412a656 6/7: Always add cursor space to the overlay, Protesilaos Stavrou, 2021/04/10
- [elpa] externals/vertico 486d426 2/7: Pass lines to `vertico--display-candidates`, Protesilaos Stavrou, 2021/04/10
- [elpa] externals/vertico 4198389 5/7: vertico--prompt-selection: Preserve existing faces, Protesilaos Stavrou, 2021/04/10