Fix #repo_path() return value when path not set

This change makes it an empty string, as documented, not 0.
This commit is contained in:
Andy Stewart
2020-02-24 15:10:55 +00:00
parent a75fd77a78
commit 669357bb92

View File

@@ -112,7 +112,7 @@ endfunction
" * -1 - pending
" * -2 - not tracked by git
function! gitgutter#utility#repo_path(bufnr, shellesc) abort
let p = gitgutter#utility#getbufvar(a:bufnr, 'path')
let p = gitgutter#utility#getbufvar(a:bufnr, 'path', '')
return a:shellesc ? gitgutter#utility#shellescape(p) : p
endfunction