Add checks for existing key to make #786 work in neovim

This commit is contained in:
Hendrik Purmann committed 2015-06-09 18:19:16 +02:00
1 parent 540c148d31
commit a0110e13bd
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ function! airline#parts#mode()
endfunction
function! airline#parts#crypt()
return g:airline_detect_crypt && !empty(&key) ? g:airline_symbols.crypt : ''
return g:airline_detect_crypt && exists("+key") && !empty(&key) ? g:airline_symbols.crypt : ''
endfunction
function! airline#parts#paste()