branch: skip for non-empty &buftype buffers

This commit is contained in:
Christian Brabandt 2019-04-25 07:32:13 +02:00
parent ffd8c406ab
commit a8b0c5f760
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ endfunction
function! s:update_untracked() function! s:update_untracked()
let file = expand("%:p") let file = expand("%:p")
if empty(file) || isdirectory(file) if empty(file) || isdirectory(file) || !empty(&buftype)
return return
endif endif