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

This commit is contained in:
wzy authored and GitHub committed 2021-08-16 14:41:49 +08:00
1 parent 0de4c9df21
commit 78cb6e6621
1 file changed
+1 -1
+1 -1
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