diff --git a/autoload/airline/extensions/hunks.vim b/autoload/airline/extensions/hunks.vim index 2dc8f32..367c9a9 100644 --- a/autoload/airline/extensions/hunks.vim +++ b/autoload/airline/extensions/hunks.vim @@ -32,6 +32,9 @@ function! s:init() endfunction function! airline#extensions#hunks#get_hunks() + if !get(w:, 'airline_active', 0) + return '' + endif call init() let hunks = s:get_hunks() let string = ''