Use s:esc function

This commit is contained in:
Junegunn Choi 2014-04-09 15:25:21 +09:00
parent 32dc4ca93f
commit f8fcc81783

View File

@ -780,7 +780,7 @@ function! s:diff()
continue
endif
execute 'cd '.substitute(v.dir, ' ', '\\ ', 'g')
execute 'cd '.s:esc(v.dir)
let diff = system('git log --pretty=format:"%h %s (%cr)" "HEAD@{0}...HEAD@{1}"')
if !v:shell_error && !empty(diff)
call append(1, '')