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:
Benjamin Andresen 2017-08-11 17:25:47 +02:00
parent e1f7efdf1d
commit 94e5fda871

View File

@ -522,16 +522,18 @@ with `evil-ex-substitute', and/or 4. The number of active `iedit' regions."
(image-size (image-get-display-property) :pixels)
(format " %dx%d " width height)))))
;; The bar regulates the height of the mode-line in GUI Emacs.
(def-modeline-segment! bar
(when (display-graphic-p)
"The bar regulates the height of the mode-line in GUI Emacs.
Returns \"\" to not break --no-window-system."
(if (display-graphic-p)
(+doom-modeline--make-xpm
(face-background (if (active)
'doom-modeline-bar
'doom-modeline-inactive-bar)
nil t)
+doom-modeline-height
+doom-modeline-bar-width)))
+doom-modeline-bar-width)
""))
;;