Hide hunks when Git Gutter is enabled, but current file is NOT under git version control
This commit is contained in:
parent
ce15809db3
commit
08a57d0227
|
@ -17,8 +17,9 @@ function! s:get_hunks_signify()
|
|||
endfunction
|
||||
|
||||
function! s:get_hunks_gitgutter()
|
||||
if !get(g:, 'gitgutter_enabled', 0)
|
||||
return ''
|
||||
if !get(g:, 'gitgutter_enabled', 0) || airline#extensions#branch#get_head() ==
|
||||
\ get(g:, 'airline#extensions#branch#empty_message', get(g:, 'airline_branch_empty_message', ''))
|
||||
return ''
|
||||
endif
|
||||
return GitGutterGetHunkSummary()
|
||||
endfunction
|
||||
|
|
Loading…
Reference in New Issue