hide hunks for inactive windows.
This commit is contained in:
parent
4b33adee42
commit
60cc5a5ca1
@ -32,6 +32,9 @@ function! s:init()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#hunks#get_hunks()
|
function! airline#extensions#hunks#get_hunks()
|
||||||
|
if !get(w:, 'airline_active', 0)
|
||||||
|
return ''
|
||||||
|
endif
|
||||||
call <sid>init()
|
call <sid>init()
|
||||||
let hunks = s:get_hunks()
|
let hunks = s:get_hunks()
|
||||||
let string = ''
|
let string = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user