From d586cb10b8be2826eb0f242a0e695d433637ce3c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 4 Mar 2016 22:41:09 -0500 Subject: [PATCH] mode-line: fix major-mode when mode-name is not a string --- core/core-ui.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-ui.el b/core/core-ui.el index 685bea2e3..b00060b5e 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -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)