From 5a490dd9ac80392f7f17261fe4a4adfbd547d0b8 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sun, 29 Mar 2020 19:04:00 +0200 Subject: [PATCH] hunks: remove test for empty branch for changes plugin Because changes plugin does not rely on git Also remove the test of the local variable for the changes plugin whether it is enabled or not, this is taken care of in the changes plugin --- autoload/airline/extensions/hunks.vim | 3 --- 1 file changed, 3 deletions(-) diff --git a/autoload/airline/extensions/hunks.vim b/autoload/airline/extensions/hunks.vim index 8efa4e26..b30ff463 100644 --- a/autoload/airline/extensions/hunks.vim +++ b/autoload/airline/extensions/hunks.vim @@ -50,9 +50,6 @@ function! s:get_hunks_gitgutter() abort endfunction function! s:get_hunks_changes() abort - if !get(b:, 'changes_view_enabled', 0) || s:is_branch_empty() - return [] - endif let hunks = changes#GetStats() return hunks == [0, 0, 0] ? [] : hunks endfunction