Skip to content

Commit

Permalink
Keep candidates visible if input line is very long
Browse files Browse the repository at this point in the history
  • Loading branch information
oantolin committed Apr 17, 2020
1 parent c3afcb5 commit a2ee925
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions icomplete-vertical.el
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ To be used as filter return advice for `icomplete-completions'."
Meant to be added to `icomplete-minibuffer-setup-hook'."
(visual-line-mode -1) ; just in case
(setq truncate-lines t)
(when (boundp 'auto-hscroll-mode)
(setq-local auto-hscroll-mode 'current-line))
(enlarge-window (- icomplete-prospects-height (1- (window-height)))))

(defun icomplete-vertical--setup-separator ()
Expand Down

0 comments on commit a2ee925

Please sign in to comment.