hide hunks for inactive windows.

This commit is contained in:
Bailey Ling 2013-09-02 14:48:03 +00:00
parent 4b33adee42
commit 60cc5a5ca1

View File

@ -32,6 +32,9 @@ function! s:init()
endfunction
function! airline#extensions#hunks#get_hunks()
if !get(w:, 'airline_active', 0)
return ''
endif
call <sid>init()
let hunks = s:get_hunks()
let string = ''