Merge pull request #2424 from Freed-Wu/Freed-Wu-patch-1

Fix bug of g:airline_symbols.spell == ''
This commit is contained in:
Christian Brabandt 2021-09-10 10:03:58 +02:00 committed by GitHub
commit 2e29ab9656
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