branch: externals/vertico commit 341b9117c11e22347337f132b6b121a964c3e29c Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@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))