Skip to content

Commit

Permalink
vertico--resize-window: Set hscroll to 0 if truncate-lines is non nil
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Jul 25, 2023
1 parent 138a765 commit d1dd2f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vertico.el
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ The function is configured by BY, BSIZE, BINDEX, BPRED and PRED."
(setq-local truncate-lines (< (point) (* 0.8 (vertico--window-width)))
resize-mini-windows 'grow-only
max-mini-window-height 1.0)
(unless truncate-lines (set-window-hscroll nil 0))
(unless (frame-root-window-p (active-minibuffer-window))
(unless vertico-resize (setq height (max height vertico-count)))
(let ((dp (- (max (cdr (window-text-pixel-size))
Expand Down

0 comments on commit d1dd2f7

Please sign in to comment.