diff --git a/autoload/airline/parts.vim b/autoload/airline/parts.vim index 678318bf..1f59300c 100644 --- a/autoload/airline/parts.vim +++ b/autoload/airline/parts.vim @@ -72,7 +72,7 @@ function! airline#parts#spell() return g:airline_symbols.spell . spelllang elseif winwidth >= 70 return g:airline_symbols.spell - else + elseif !empty(g:airline_symbols.spell) return split(g:airline_symbols.spell, '\zs')[0] endif endif