From bbe077037e83b368d93a9aebe24ac1d0c21a6d65 Mon Sep 17 00:00:00 2001 From: Bastian Winkler Date: Mon, 19 Aug 2013 23:13:00 +0200 Subject: [PATCH] hunks: Display the hunks summary only if Git Gutter is enabled --- 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 2b70f1b..8057097 100644 --- a/autoload/airline/extensions/hunks.vim +++ b/autoload/airline/extensions/hunks.vim @@ -5,6 +5,9 @@ let s:non_zero_only = get(g:, 'airline#extensions#hunks#non_zero_only', 0) let s:hunk_symbols = get(g:, 'airline#extensions#hunks#hunk_symbols', ['+', '~', '-']) function! airline#extensions#hunks#get_hunks() + if get(g:, 'gitgutter_enabled', 0) == 0 + return '' + endif let hunks = GitGutterGetHunkSummary() let string = '' for i in [0, 1, 2]