From 669357bb921d50e644253b421328edaba1c40b78 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Mon, 24 Feb 2020 15:10:55 +0000 Subject: [PATCH] Fix #repo_path() return value when path not set This change makes it an empty string, as documented, not 0. --- autoload/gitgutter/utility.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/gitgutter/utility.vim b/autoload/gitgutter/utility.vim index 3f533ba..2b89b35 100644 --- a/autoload/gitgutter/utility.vim +++ b/autoload/gitgutter/utility.vim @@ -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