From 60cc5a5ca12abee5ef822aa45ba77097048a8008 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Mon, 2 Sep 2013 14:48:03 +0000 Subject: [PATCH] hide hunks for inactive windows. --- autoload/airline/extensions/hunks.vim | 3 +++ 1 file changed, 3 insertions(+) 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 = ''