Merge pull request #1239 from chrisbra/1230

Do not cache gitgutter values
This commit is contained in:
Christian Brabandt 2016-09-05 19:32:24 +02:00 committed by GitHub
commit 54e4772ef8
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ function! airline#extensions#hunks#get_hunks()
\ get(b:, 'airline_changenr', 0) == changenr() && \ get(b:, 'airline_changenr', 0) == changenr() &&
\ winwidth(0) == get(s:, 'airline_winwidth', 0) && \ winwidth(0) == get(s:, 'airline_winwidth', 0) &&
\ get(b:, 'source_func', '') isnot# 's:get_hunks_signify' && \ 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'
return b:airline_hunks return b:airline_hunks
endif endif