Fix #155 - cd /d on Windows

This commit is contained in:
Junegunn Choi 2015-01-29 19:08:03 +09:00
parent 1c61517164
commit 7d40f592af

View file

@ -1187,7 +1187,7 @@ function! s:format_message(bullet, name, message)
endfunction endfunction
function! s:with_cd(cmd, dir) function! s:with_cd(cmd, dir)
return 'cd '.s:esc(a:dir).' && '.a:cmd return (s:is_win ? 'cd /d ' : 'cd ').s:esc(a:dir).' && '.a:cmd
endfunction endfunction
function! s:system(cmd, ...) function! s:system(cmd, ...)