Merge pull request #1875 from petobens/master

Fix denite extension
This commit is contained in:
Christian Brabandt 2019-02-12 11:15:14 +01:00 committed by GitHub
commit 448aa43ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ function! airline#extensions#denite#check_denite_mode(bufnr)
return ''
endif
let mode = split(denite#get_status_mode(), ' ')
let mode = tolower(mode[1])
let mode = tolower(get(mode, 1, ''))
if !exists('b:denite_mode_cache') || mode != b:denite_mode_cache
call airline#highlighter#highlight([mode], a:bufnr)
let b:denite_mode_cache = mode