Fix resize hook not being uninstalled
This commit is contained in:
parent
fb8e012d60
commit
8075b5662e
@ -534,7 +534,7 @@ reused. Otherwise, a new frame is created by `eldoc-frame--create-child-frame'."
|
||||
(when (timerp eldoc-frame--idle-timer)
|
||||
(setq eldoc-frame--idle-timer (cancel-timer eldoc-frame--idle-timer)))
|
||||
;; Remove window state change hooks
|
||||
(remove-hook 'window-size-change-functions #'eldoc-frame--maybe-resize-frame)
|
||||
(remove-hook 'window-state-change-hook #'eldoc-frame--maybe-resize-frame)
|
||||
(remove-hook 'window-state-change-hook #'eldoc-frame--maybe-hide-frame)
|
||||
;; Restore the original buffer-local value of `eldoc-display-functions'
|
||||
(setq-local eldoc-display-functions
|
||||
|
Loading…
Reference in New Issue
Block a user