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
1 changed files with 11 additions and 9 deletions
|
@ -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)
|
||||
(+doom-modeline--make-xpm
|
||||
(face-background (if (active)
|
||||
'doom-modeline-bar
|
||||
'doom-modeline-inactive-bar)
|
||||
nil t)
|
||||
+doom-modeline-height
|
||||
+doom-modeline-bar-width)))
|
||||
"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)
|
||||
""))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue