mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-23 20:45:31 -07:00
Use s:esc function
This commit is contained in:
parent
32dc4ca93f
commit
f8fcc81783
2
plug.vim
2
plug.vim
@ -780,7 +780,7 @@ function! s:diff()
|
|||||||
continue
|
continue
|
||||||
endif
|
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}"')
|
let diff = system('git log --pretty=format:"%h %s (%cr)" "HEAD@{0}...HEAD@{1}"')
|
||||||
if !v:shell_error && !empty(diff)
|
if !v:shell_error && !empty(diff)
|
||||||
call append(1, '')
|
call append(1, '')
|
||||||
|
Loading…
Reference in New Issue
Block a user