Fix 'no such live buffer' errors from helm +childframe
This commit is contained in:
parent
025a4c3d26
commit
6a67572e1d
1 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue