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

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

[elpa] externals/vertico 897e214: Disable line truncation if prompt/inpu


From: ELPA Syncer
Subject: [elpa] externals/vertico 897e214: Disable line truncation if prompt/input is too long
Date: Mon, 5 Jul 2021 09:57:17 -0400 (EDT)

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

    Disable line truncation if prompt/input is too long
---
 vertico.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vertico.el b/vertico.el
index dd2f48e..e83a9f6 100644
--- a/vertico.el
+++ b/vertico.el
@@ -477,6 +477,7 @@ See `resize-mini-windows' for documentation."
 
 (defun vertico--resize-window (height)
   "Resize active minibuffer window to HEIGHT."
+  (setq-local truncate-lines (< (point-max) (- (window-width) 4)))
   (unless (frame-root-window-p (active-minibuffer-window))
     (let* ((window-resize-pixelwise t)
            (dp (- (max (cdr (window-text-pixel-size))
@@ -683,7 +684,6 @@ When the prefix argument is 0, the group order is reset."
         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 resize-mini-windows 'grow-only
-              truncate-lines (< (minibuffer-prompt-end) (/ (window-width) 2))
               max-mini-window-height 1.0
               completion-auto-help nil
               completion-show-inline-help nil)



reply via email to

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