mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-02-26 11:37:13 +08:00
Add checks for existing key to make #786 work in neovim
This commit is contained in:
@@ -161,7 +161,7 @@ function! airline#check_mode(winnr)
|
||||
call add(l:mode, 'paste')
|
||||
endif
|
||||
|
||||
if g:airline_detect_crypt && !empty(&key)
|
||||
if g:airline_detect_crypt && exists("+key") && !empty(&key)
|
||||
call add(l:mode, 'crypt')
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user