mode-line: fix global-mode-string

This commit is contained in:
3marcusw 2015-04-25 18:36:30 -04:00 committed by syl20bnr
parent 561676d675
commit 4898eadb3c

View file

@ -2425,9 +2425,8 @@ It is a string holding:
(powerline-raw " " line-face)) (powerline-raw " " line-face))
(list (list
;; global-mode ;; global-mode
(unless (equal '("") global-mode-string)
(powerline-raw global-mode-string) (powerline-raw global-mode-string)
(powerline-raw " " line-face)) (powerline-raw " " line-face)
;; new version ;; new version
(if (and active (if (and active
spacemacs-new-version spacemacs-new-version
@ -2443,7 +2442,8 @@ It is a string holding:
;; display hud ;; display hud
(powerline-chamfer-left line-face face1) (powerline-chamfer-left line-face face1)
(if (string-match "\%" progress) (if (string-match "\%" progress)
(powerline-hud state-face face1)))))))) (powerline-hud state-face face1)))))
)))
(defun spacemacs/mode-line-prepare () (defun spacemacs/mode-line-prepare ()
(let* ((active (powerline-selected-window-active)) (let* ((active (powerline-selected-window-active))