Fix potential unsupported separator by base powerline package

This error can happen if you set the cup separator or any other separator type
only supported by all-the-icons and not spaceline/powerline.
This commit is contained in:
syl20bnr 2018-01-17 14:10:42 -05:00
parent 509ff96c66
commit ab7b3109dc
1 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,11 @@
(add-hook 'spacemacs-post-theme-change-hook
'spacemacs/customize-powerline-faces)
(add-hook 'spacemacs-post-theme-change-hook 'powerline-reset)
(setq powerline-default-separator (or (spacemacs/mode-line-separator) 'wave)
(setq powerline-default-separator
(or (and (memq (spacemacs/get-mode-line-theme-name)
'(spacemacs custom))
(spacemacs/mode-line-separator))
'wave)
powerline-scale (or (spacemacs/mode-line-separator-scale) 1.5)
powerline-height (spacemacs/compute-mode-line-height))
(spacemacs|do-after-display-system-init