From 94e5fda871e72bf639fd8eee020ef53b2f5d3bb5 Mon Sep 17 00:00:00 2001 From: Benjamin Andresen Date: Fri, 11 Aug 2017 17:25:47 +0200 Subject: [PATCH] Fix: ui/doom-modeline: segment bar has to return "" in any case to not break -nw Amoriello found this fix in issue #170 --- modules/ui/doom-modeline/config.el | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/modules/ui/doom-modeline/config.el b/modules/ui/doom-modeline/config.el index 01d2e5f04..84401a308 100644 --- a/modules/ui/doom-modeline/config.el +++ b/modules/ui/doom-modeline/config.el @@ -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) + "")) ;;