Merge pull request #1489 from ozelentok/master
Improve denite extension performance
This commit is contained in:
commit
9eb51f48f4
@ -13,7 +13,10 @@ endif
|
|||||||
function! airline#extensions#denite#check_denite_mode(bufnr)
|
function! airline#extensions#denite#check_denite_mode(bufnr)
|
||||||
let l:mode = split(denite#get_status_mode(), ' ')
|
let l:mode = split(denite#get_status_mode(), ' ')
|
||||||
let l:mode = tolower(l:mode[1])
|
let l:mode = tolower(l:mode[1])
|
||||||
|
if !exists('b:denite_mode_cache') || l:mode != b:denite_mode_cache
|
||||||
call airline#highlighter#highlight([l:mode], a:bufnr)
|
call airline#highlighter#highlight([l:mode], a:bufnr)
|
||||||
|
let b:denite_mode_cache = l:mode
|
||||||
|
endif
|
||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user