branch: externals/ivy-posframe
commit 8902638788ca42fcf517e64899b57a9aa35532dc
Author: conao3 <[email protected]>
Commit: conao3 <[email protected]>
define ivy-posframe-adbice-alist
---
ivy-posframe.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ivy-posframe.el b/ivy-posframe.el
index bd5126e..f5cc474 100644
--- a/ivy-posframe.el
+++ b/ivy-posframe.el
@@ -409,6 +409,8 @@ selection, non-nil otherwise."
(ivy-quit-and-run
(avy-action-goto (avy-candidate-beg candidate)))))))
+;;; Advice
+
(defun ivy-posframe--minibuffer-setup (orig-func)
"Advice function of `ivy--minibuffer-setup'."
(let ((ivy-fixed-height-minibuffer nil))
@@ -436,6 +438,10 @@ selection, non-nil otherwise."
(insert prompt " \n")
(add-text-properties point (1+ point) '(face
ivy-posframe-cursor)))))))
+(defvar ivy-posframe-advice-alist
+ '((ivy--minibuffer-setup . ivy-posframe--minibuffer-setup)
+ (ivy--queue-exhibit . ivy-posframe--add-prompt)))
+
;;;###autoload
(defun ivy-posframe-enable ()
"Enable ivy-posframe."