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

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

[elpa] externals/vertico 341b911: vertico--setup: Only truncate lines fo


From: Protesilaos Stavrou
Subject: [elpa] externals/vertico 341b911: vertico--setup: Only truncate lines for short prompts (Fix #29)
Date: Tue, 11 May 2021 12:29:48 -0400 (EDT)

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

    vertico--setup: Only truncate lines for short prompts (Fix #29)
    
    This ensures that the window does not scroll to the right for long prompts.
---
 vertico.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vertico.el b/vertico.el
index 1da1f08..05bb5d3 100644
--- a/vertico.el
+++ b/vertico.el
@@ -571,7 +571,7 @@
         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 t
+              truncate-lines (< (minibuffer-prompt-end) (/ (window-width) 2))
               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]