mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-07 17:44:25 +08:00
Use s:esc function
This commit is contained in:
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, '')
|
||||||
|
|||||||
Reference in New Issue
Block a user