Skip to content

Commit

Permalink
Disable line truncation if prompt/input is too long
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Jul 5, 2021
1 parent 7d10b1e commit 897e214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vertico.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 897e214

Please sign in to comment.