mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-02-01 12:38:46 +08:00
Merge pull request #364 from dmitrykruglov/master
Hide hunks when Git Gutter is enabled, but current file is NOT under git...
This commit is contained in:
commit
ed7111b1ff
|
@ -17,8 +17,9 @@ function! s:get_hunks_signify()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:get_hunks_gitgutter()
|
function! s:get_hunks_gitgutter()
|
||||||
if !get(g:, 'gitgutter_enabled', 0)
|
if !get(g:, 'gitgutter_enabled', 0) || airline#extensions#branch#get_head() ==
|
||||||
return ''
|
\ get(g:, 'airline#extensions#branch#empty_message', get(g:, 'airline_branch_empty_message', ''))
|
||||||
|
return ''
|
||||||
endif
|
endif
|
||||||
return GitGutterGetHunkSummary()
|
return GitGutterGetHunkSummary()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in New Issue
Block a user