branch: externals/vertico-posframe
commit 4e33c28be7313495cbb85a09a763f1c96f9e9909
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>
* 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."