Fix bug of g:airline_symbols.spell == ''

This commit is contained in:
wzy 2021-08-16 14:41:49 +08:00 committed by GitHub
parent 0de4c9df21
commit 78cb6e6621
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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