Handle files in different drive on Windows

This commit is contained in:
Chayoung You
2018-03-06 15:37:27 +09:00
committed by Andy Stewart
parent b87aacbbfe
commit 538e07882a

View File

@@ -149,7 +149,7 @@ function! s:set_path(bufnr, path)
endfunction
function! gitgutter#utility#cd_cmd(bufnr, cmd) abort
let cd = s:unc_path(a:bufnr) ? 'pushd' : 'cd'
let cd = s:unc_path(a:bufnr) ? 'pushd' : (s:windows() ? 'cd /d' : 'cd')
return cd.' '.s:dir(a:bufnr).' && '.a:cmd
endfunction