When quitting eldoc-box-hover-move, really delete the frame

This helps to reset the frame in case something has gone wrong.

* eldoc-box.el (eldoc-box-hover-mode): Delete frame and set
var to nil.
This commit is contained in:
João Távora 2018-12-16 23:21:45 +00:00 committed by Yuan Fu
parent c5786a371c
commit 44007aa67d
No known key found for this signature in database
GPG Key ID: 1CF5ECABEC37A901

View File

@ -111,7 +111,9 @@ Consider your machine's screen's resolution when setting this variable.")
(remove-function (local 'eldoc-message-function) #'eldoc-box--eldoc-message-function) (remove-function (local 'eldoc-message-function) #'eldoc-box--eldoc-message-function)
;; if minor mode is turned off when childframe is visible ;; if minor mode is turned off when childframe is visible
;; hide it ;; hide it
(eldoc-box-quit-frame))) (when eldoc-box--frame
(delete-frame eldoc-box--frame)
(setq eldoc-box--frame nil))))
;;;; Backstage ;;;; Backstage
;;;;; Variable ;;;;; Variable