Skip to content

Commit

Permalink
Use with-helm-buffer in autoresize mode (#1973)
Browse files Browse the repository at this point in the history
* helm.el (helm--autoresize-hook): Do it.
  • Loading branch information
Thierry Volpiatto committed Feb 25, 2018
1 parent f15c8e7 commit a5e9a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm.el
Original file line number Diff line number Diff line change
Expand Up @@ -6550,7 +6550,7 @@ or `helm-follow-input-idle-delay' or `helm-input-idle-delay' secs."
;;; Auto-resize mode
;;
(defun helm--autoresize-hook (&optional max-height min-height)
(with-helm-window
(with-helm-buffer
(fit-window-to-buffer nil
(/ (* (frame-height)
(or max-height helm-autoresize-max-height))
Expand Down

0 comments on commit a5e9a7b

Please sign in to comment.