From 78cb6e66219e4ff61b24e5d22cbfb546597a66dd Mon Sep 17 00:00:00 2001 From: wzy <32936898+Freed-Wu@users.noreply.github.com> Date: Mon, 16 Aug 2021 14:41:49 +0800 Subject: [PATCH] Fix bug of g:airline_symbols.spell == '' --- autoload/airline/parts.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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