From 7d40f592affad251f4c1436d467e8ceeb80f3a7c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 29 Jan 2015 19:08:03 +0900 Subject: [PATCH] Fix #155 - `cd /d` on Windows --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index f2c5586..2e19f61 100644 --- a/plug.vim +++ b/plug.vim @@ -1187,7 +1187,7 @@ function! s:format_message(bullet, name, message) endfunction 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 function! s:system(cmd, ...)