Fix wrong-type-arg: integerp by posframe

Due to destructive advice.

Fixes #787
This commit is contained in:
Henrik Lissner 2018-08-07 12:57:21 +02:00
parent 37e80c4878
commit 85e837e06a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -81,7 +81,9 @@ be negative.")
helm-display-buffer-default-height 0.42
helm-echo-input-in-header-line t)
;; Fix "Specified window is not displaying the current buffer" error
(advice-add #'posframe--get-font-height :override #'ignore))
(defun +helm*fix-get-font-height (orig-fn position)
(ignore-errors (funcall orig-fn position)))
(advice-add #'posframe--get-font-height :around #'+helm*fix-get-font-height))
(let ((fuzzy (featurep! +fuzzy)))
(setq helm-mode-fuzzy-match fuzzy