From 106062da0df76e3b0157eb435261689f08da724c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 25 Jun 2018 14:48:30 +0200 Subject: [PATCH] Fix ivy posframe The display function was being set on ivy-display-functions-props. The correct variable for it is ivy-display-functions-alist. Reported by randoom in discord. --- modules/completion/ivy/config.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/completion/ivy/config.el b/modules/completion/ivy/config.el index b837fc80d..eff326086 100644 --- a/modules/completion/ivy/config.el +++ b/modules/completion/ivy/config.el @@ -200,8 +200,9 @@ immediately runs it on the current candidate (ending the ivy session)." 'ivy-posframe-display-at-window-bottom-left 'ivy-posframe-display-at-window-center '+ivy-display-at-frame-center-near-bottom)) - (push (cons fn '(:cleanup ivy-posframe-cleanup)) ivy-display-functions-props)) - (push '(t . +ivy-display-at-frame-center-near-bottom) ivy-display-functions-props)) + (push (cons fn '(:cleanup ivy-posframe-cleanup)) ivy-display-functions-props))) + ;; default to posframe display function + (setf (alist-get t ivy-display-functions-alist) #'+ivy-display-at-frame-center-near-bottom) ;; posframe doesn't work well with async sources (dolist (fn '(swiper counsel-rg counsel-ag counsel-pt counsel-grep counsel-git-grep))