mode-line: fix major-mode when mode-name is not a string

This commit is contained in:
Henrik Lissner 2016-03-04 22:41:09 -05:00
parent 94bfda6b78
commit d586cb10b8

View file

@ -376,7 +376,7 @@ iedit."
(powerline-raw
(concat
(and (featurep 'face-remap) (/= text-scale-mode-amount 0) (format "(%+d) " text-scale-mode-amount))
mode-name
(if (stringp mode-name) mode-name (car mode-name))
(if (stringp mode-line-process) mode-line-process)))
:tight-right t)