Fix 'no such live buffer' errors from helm +childframe

This commit is contained in:
Henrik Lissner 2019-08-22 18:54:30 -04:00
parent 025a4c3d26
commit 6a67572e1d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)