Clear childframe on exit of minor mode

This commit is contained in:
Yuan Fu 2018-12-11 16:38:02 -05:00
parent 317cd2ddfc
commit 349e4738ec
No known key found for this signature in database
GPG Key ID: 1CF5ECABEC37A901

View File

@ -179,7 +179,10 @@ Checkout `lsp-ui-doc--make-frame', `lsp-ui-doc--move-frame'."
:lighter " ELDOC-BOX" :lighter " ELDOC-BOX"
(if eldoc-box-hover-mode (if eldoc-box-hover-mode
(setq-local eldoc-message-function #'eldoc-box--eldoc-message-function) (setq-local eldoc-message-function #'eldoc-box--eldoc-message-function)
(setq-local eldoc-message-function #'eldoc-minibuffer-message))) (setq-local eldoc-message-function #'eldoc-minibuffer-message)
;; if minor mode is turned off when childframe is visible
;; hide it
(eldoc-box-quit-frame)))
(provide 'eldoc-box) (provide 'eldoc-box)