mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-10 04:23:46 -05:00
Handle files in different drive on Windows
This commit is contained in:
committed by
Andy Stewart
parent
b87aacbbfe
commit
538e07882a
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user