fix(popup): don't disable hide-mode-line if enabled globally

Ref: hlissner/emacs-hide-mode-line#11
This commit is contained in:
Henrik Lissner 2024-08-29 02:46:21 -04:00
parent 1c16b84691
commit d1c2c8c35b
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -297,7 +297,8 @@ Any non-nil value besides the above will be used as the raw value for
(defun +popup-unset-modeline-on-disable-h ()
"Restore the modeline when `+popup-buffer-mode' is deactivated."
(when (and (not (bound-and-true-p +popup-buffer-mode))
(bound-and-true-p hide-mode-line-mode))
(bound-and-true-p hide-mode-line-mode)
(not (bound-and-true-p global-hide-mode-line-mode)))
(hide-mode-line-mode -1)))
;;;###autoload