hide hunks for inactive windows.
This commit is contained in:
parent
4b33adee42
commit
60cc5a5ca1
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in New Issue