Escape cwd

This commit is contained in:
Marco Hinz 2015-05-28 19:24:40 +02:00
parent c0da740d7e
commit 0867de3ac3

View File

@ -152,7 +152,7 @@ function! s:run(cmd, path, do_switch_dir)
execute b:sy_info.chdir fnameescape(b:sy_info.dir) execute b:sy_info.chdir fnameescape(b:sy_info.dir)
let ret = system(cmd) let ret = system(cmd)
finally finally
execute b:sy_info.chdir cwd execute b:sy_info.chdir fnameescape(cwd)
endtry endtry
return ret return ret
endif endif