Shell-escape v.rtp

This commit is contained in:
Junegunn Choi 2018-11-04 02:52:41 +09:00 committed by GitHub
parent 207d7577fe
commit f203cddb22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2422,7 +2422,7 @@ function! s:diff()
let range = origin ? '..origin/'.v.branch : 'HEAD@{1}..' let range = origin ? '..origin/'.v.branch : 'HEAD@{1}..'
let cmd = 'git log --graph --color=never '.join(map(['--pretty=format:%x01%h%x01%d%x01%s%x01%cr', range], 's:shellesc(v:val)')) let cmd = 'git log --graph --color=never '.join(map(['--pretty=format:%x01%h%x01%d%x01%s%x01%cr', range], 's:shellesc(v:val)'))
if has_key(v, 'rtp') if has_key(v, 'rtp')
let cmd .= ' -- '.v.rtp let cmd .= ' -- '.s:shellesc(v.rtp)
endif endif
let diff = s:system_chomp(cmd, v.dir) let diff = s:system_chomp(cmd, v.dir)
if !empty(diff) if !empty(diff)