[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vertico-posframe 540eb9823c 5/5: * vertico-posframe.el
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vertico-posframe 540eb9823c 5/5: * vertico-posframe.el (vertico-posframe-cleanup): Improve. |
Date: |
Tue, 11 Jan 2022 20:58:13 -0500 (EST) |
branch: externals/vertico-posframe
commit 540eb9823cd757acdfb56d78e909e8bf8dc21428
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* vertico-posframe.el (vertico-posframe-cleanup): Improve.
---
vertico-posframe.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/vertico-posframe.el b/vertico-posframe.el
index da13886266..9cde34007c 100644
--- a/vertico-posframe.el
+++ b/vertico-posframe.el
@@ -289,8 +289,9 @@ is called, window-point will be set to WINDOW-POINT."
(defun vertico-posframe-cleanup ()
"Remove frames and buffers used for vertico-posframe."
(interactive)
- (when vertico-posframe--buffer
- (posframe-delete vertico-posframe--buffer)))
+ (dolist (buffer (buffer-list))
+ (when (minibufferp buffer)
+ (posframe-delete-frame buffer))))
;;;###autoload
(define-minor-mode vertico-posframe-mode