Fix: ui/doom-modeline: segment bar has to return "" in any case to not break -nw
Amoriello found this fix in issue #170
This commit is contained in:
parent
e1f7efdf1d
commit
94e5fda871
|
@ -522,16 +522,18 @@ with `evil-ex-substitute', and/or 4. The number of active `iedit' regions."
|
||||||
(image-size (image-get-display-property) :pixels)
|
(image-size (image-get-display-property) :pixels)
|
||||||
(format " %dx%d " width height)))))
|
(format " %dx%d " width height)))))
|
||||||
|
|
||||||
;; The bar regulates the height of the mode-line in GUI Emacs.
|
|
||||||
(def-modeline-segment! bar
|
(def-modeline-segment! bar
|
||||||
(when (display-graphic-p)
|
"The bar regulates the height of the mode-line in GUI Emacs.
|
||||||
(+doom-modeline--make-xpm
|
Returns \"\" to not break --no-window-system."
|
||||||
(face-background (if (active)
|
(if (display-graphic-p)
|
||||||
'doom-modeline-bar
|
(+doom-modeline--make-xpm
|
||||||
'doom-modeline-inactive-bar)
|
(face-background (if (active)
|
||||||
nil t)
|
'doom-modeline-bar
|
||||||
+doom-modeline-height
|
'doom-modeline-inactive-bar)
|
||||||
+doom-modeline-bar-width)))
|
nil t)
|
||||||
|
+doom-modeline-height
|
||||||
|
+doom-modeline-bar-width)
|
||||||
|
""))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user