feature/popup: clean up buffer processes too, if any

This commit is contained in:
Henrik Lissner 2018-01-06 03:30:27 -05:00
parent b681917082
commit d76f991c0c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -29,6 +29,8 @@ the buffer is visible, then set another timer and try again later."
(with-demoted-errors "Error killing transient buffer: %s"
(let ((inhibit-message (not doom-debug-mode)))
(message "Cleaned up transient buffer: %s" buffer))
(when-let* ((process (get-buffer-process (current-buffer))))
(kill-process process))
(kill-buffer buffer)))))
(defun +popup--init (window alist)