branch: externals/vertico-posframe
commit 9ff74bbc6658d9d5311a63c5d92491c82ee06cd2
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>
Let vertico-posframe run better in emacs 27.
---
vertico-posframe.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/vertico-posframe.el b/vertico-posframe.el
index 6e4c8e4..ad1e4f8 100644
--- a/vertico-posframe.el
+++ b/vertico-posframe.el
@@ -5,7 +5,7 @@
;; Author: Feng Shu <[email protected]>
;; Maintainer: Feng Shu <[email protected]>
;; URL: https://github.com/tumashu/vertico-posframe
-;; Version: 0.3.1
+;; Version: 0.3.2
;; Keywords: abbrev, convenience, matching, vertico
;; Package-Requires: ((emacs "26.0") (posframe "1.0.0") (vertico "0.13.0"))
@@ -181,14 +181,14 @@ Optional argument FRAME ."
content
(propertize " " 'face 'vertico-posframe-cursor)
"\n" (string-join lines)))
- ;; Create a posframe to cover minibuffer.
- (if current-input-method
- (posframe-hide vertico-posframe--minibuffer-cover)
- (posframe-show vertico-posframe--minibuffer-cover
- :string (make-string 200 ? )
- :position '(0 . -1)
- :lines-truncate t))
(with-selected-window (vertico-posframe-last-window)
+ ;; Create a posframe to cover minibuffer.
+ (if current-input-method
+ (posframe-hide vertico-posframe--minibuffer-cover)
+ (posframe-show vertico-posframe--minibuffer-cover
+ :string (make-string 200 ? )
+ :position '(0 . -1)
+ :lines-truncate t))
(apply #'posframe-show
vertico-posframe--buffer
:font vertico-posframe-font