mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix 'no such live buffer' errors from helm +childframe
This commit is contained in:
@ -52,10 +52,8 @@ bottom, which is easier on the eyes on big displays."
|
|||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +helm-posframe-cleanup-h ()
|
(defun +helm-posframe-cleanup-h ()
|
||||||
"TODO"
|
"TODO"
|
||||||
;; Ensure focus is properly returned to the underlying window, by forcing a
|
;; Ensure focus is properly returned to the underlying window. This gives the
|
||||||
;; chance in buffer/window focus. This gives the modeline a chance to refresh.
|
;; modeline a chance to refresh.
|
||||||
(switch-to-buffer +helm--posframe-buffer t)
|
(switch-to-buffer +helm--posframe-buffer t))
|
||||||
;;
|
|
||||||
(posframe-delete +helm--posframe-buffer))
|
|
||||||
|
|
||||||
(add-hook 'helm-cleanup-hook #'+helm-posframe-cleanup-h)
|
(add-hook 'helm-cleanup-hook #'+helm-posframe-cleanup-h)
|
||||||
|
Reference in New Issue
Block a user