Skip to content

Commit

Permalink
Fix byte-compilation warning on Emacs --without-x
Browse files Browse the repository at this point in the history
  • Loading branch information
akater committed Jul 30, 2021
1 parent 031d4d0 commit ebb2bd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ivy.el
Original file line number Diff line number Diff line change
Expand Up @@ -2986,8 +2986,10 @@ tries to ensure that it does not change depending on the number of candidates."

(defun ivy--minibuffer-setup ()
"Setup ivy completion in the minibuffer."
(setq-local mwheel-scroll-up-function 'ivy-next-line)
(setq-local mwheel-scroll-down-function 'ivy-previous-line)
(when (boundp 'mwheel-scroll-up-function)
(setq-local mwheel-scroll-up-function 'ivy-next-line))
(when (boundp 'mwheel-scroll-down-function)
(setq-local mwheel-scroll-down-function 'ivy-previous-line))
(setq-local completion-show-inline-help nil)
(setq-local line-spacing nil)
(setq-local minibuffer-default-add-function
Expand Down

0 comments on commit ebb2bd3

Please sign in to comment.