mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 03:53:47 -05:00
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:
@@ -112,7 +112,7 @@ endfunction
|
|||||||
" * -1 - pending
|
" * -1 - pending
|
||||||
" * -2 - not tracked by git
|
" * -2 - not tracked by git
|
||||||
function! gitgutter#utility#repo_path(bufnr, shellesc) abort
|
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
|
return a:shellesc ? gitgutter#utility#shellescape(p) : p
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user