Explorar o código

Fix #155 - `cd /d` on Windows

Junegunn Choi %!s(int64=11) %!d(string=hai) anos
pai
achega
7d40f592af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plug.vim

+ 1 - 1
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, ...)