From d8eb12845f7b01daf471ee222ea63dde410b4150 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 14 Aug 2017 08:13:19 +0200 Subject: [PATCH] hunks: do not cache for changes plugin --- autoload/airline/extensions/hunks.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/hunks.vim b/autoload/airline/extensions/hunks.vim index 8ce3a51a..4bb4b4fd 100644 --- a/autoload/airline/extensions/hunks.vim +++ b/autoload/airline/extensions/hunks.vim @@ -69,7 +69,8 @@ function! airline#extensions#hunks#get_hunks() \ winwidth(0) == get(s:, 'airline_winwidth', 0) && \ get(b:, 'source_func', '') isnot# 's:get_hunks_signify' && \ get(b:, 'source_func', '') isnot# 's:get_hunks_gitgutter' && - \ get(b:, 'source_func', '') isnot# 's:get_hunks_empty' + \ get(b:, 'source_func', '') isnot# 's:get_hunks_empty' && + \ get(b:, 'source_func', '') isnot# 's:get_hunks_changes' return b:airline_hunks endif let hunks = s:get_hunks()