emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vertico-posframe 4e33c28 03/10: * vertico-posframe.el (


From: ELPA Syncer
Subject: [elpa] externals/vertico-posframe 4e33c28 03/10: * vertico-posframe.el (vertico-posframe--display): with-selected-window to next-window
Date: Wed, 27 Oct 2021 14:58:42 -0400 (EDT)

branch: externals/vertico-posframe
commit 4e33c28be7313495cbb85a09a763f1c96f9e9909
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    * vertico-posframe.el (vertico-posframe--display): with-selected-window to 
next-window
---
 vertico-posframe.el | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/vertico-posframe.el b/vertico-posframe.el
index e5f4c29..8cdadc2 100644
--- a/vertico-posframe.el
+++ b/vertico-posframe.el
@@ -179,19 +179,20 @@ When 0, no border is showed."
               content
               (propertize " " 'face 'vertico-posframe-cursor)
               "\n" (string-join lines)))
-    (apply #'posframe-show
-           vertico-posframe--buffer
-           :font vertico-posframe-font
-           :poshandler vertico-posframe-poshandler
-           :background-color (face-attribute 'vertico-posframe :background nil 
t)
-           :foreground-color (face-attribute 'vertico-posframe :foreground nil 
t)
-           :internal-border-width vertico-posframe-border-width
-           :internal-border-color (face-attribute 'vertico-posframe-border 
:background nil t)
-           :override-parameters vertico-posframe-parameters
-           :refposhandler vertico-posframe-refposhandler
-           :hidehandler #'vertico-posframe-hidehandler
-           :lines-truncate t
-           (funcall vertico-posframe-size-function))))
+    (with-selected-window (next-window)
+      (apply #'posframe-show
+             vertico-posframe--buffer
+             :font vertico-posframe-font
+             :poshandler vertico-posframe-poshandler
+             :background-color (face-attribute 'vertico-posframe :background 
nil t)
+             :foreground-color (face-attribute 'vertico-posframe :foreground 
nil t)
+             :internal-border-width vertico-posframe-border-width
+             :internal-border-color (face-attribute 'vertico-posframe-border 
:background nil t)
+             :override-parameters vertico-posframe-parameters
+             :refposhandler vertico-posframe-refposhandler
+             :hidehandler #'vertico-posframe-hidehandler
+             :lines-truncate t
+             (funcall vertico-posframe-size-function)))))
 
 (defun vertico-posframe--select (_)
   "Ensure that cursor is only shown if minibuffer is selected."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]