branch: externals/ivy-posframe commit 61ff9418493159001f096ea3a9441093a8951629 Author: Feng Shu <tuma...@163.com> Commit: Feng Shu <tuma...@163.com>
Fix: ivy-posframe disappear in a flash after ivy-posframe-avy #114 --- ivy-posframe.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ivy-posframe.el b/ivy-posframe.el index 030662f..7b17cad 100644 --- a/ivy-posframe.el +++ b/ivy-posframe.el @@ -292,7 +292,11 @@ This variable is useful for `ivy-posframe-read-action' .") (defun ivy-posframe-hidehandler (_) "Hidehandler used by ivy-posframe." - (not (minibufferp))) + (and (not (minibufferp)) + ;; Note: when run ivy-avy, buffer will be temp changed, make + ;; sure do not autohide posframe at this situation. + ;; More detail: https://github.com/tumashu/ivy-posframe/issues/114 + (not (equal (current-buffer) (window-buffer (ivy-posframe--window)))))) (defun ivy-posframe-get-size () "The default functon used by `ivy-posframe-size-function'."