mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-27 16:04:39 +02:00
Merge pull request #2521 from foonathan/master
Don't use flags in spell when spelllang disabled
This commit is contained in:
commit
dc65eea5d9
@ -146,7 +146,7 @@ function! airline#parts#spell()
|
||||
let spelllang = g:airline_detect_spelllang ? printf(" [%s]", toupper(substitute(&spelllang, ',', '/', 'g'))) : ''
|
||||
if g:airline_detect_spell && (&spell || (exists('g:airline_spell_check_command') && eval(g:airline_spell_check_command)))
|
||||
|
||||
if g:airline_detect_spelllang ==? 'flag'
|
||||
if g:airline_detect_spelllang && g:airline_detect_spelllang ==? 'flag'
|
||||
let spelllang = tolower(&spelllang)
|
||||
if has_key(s:flags, spelllang)
|
||||
return s:flags[spelllang]
|
||||
|
Loading…
x
Reference in New Issue
Block a user