Skip to content

Commit 4f95bce

Browse files
janlazojunegunn
authored andcommitted
Fix PlugDiff for Windows (#681)
Close #680
1 parent 7f96c98 commit 4f95bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plug.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2406,7 +2406,7 @@ function! s:diff()
24062406
call s:append_ul(2, origin ? 'Pending updates:' : 'Last update:')
24072407
for [k, v] in plugs
24082408
let range = origin ? '..origin/'.v.branch : 'HEAD@{1}..'
2409-
let diff = s:system_chomp('git log --graph --color=never --pretty=format:"%x01%h%x01%d%x01%s%x01%cr" '.s:shellesc(range), v.dir)
2409+
let diff = s:system_chomp('git log --graph --color=never '.join(map(['--pretty=format:"%x01%h%x01%d%x01%s%x01%cr"', range], 's:shellesc(v:val)')), v.dir)
24102410
if !empty(diff)
24112411
let ref = has_key(v, 'tag') ? (' (tag: '.v.tag.')') : has_key(v, 'commit') ? (' '.v.commit) : ''
24122412
call append(5, extend(['', '- '.k.':'.ref], map(s:lines(diff), 's:format_git_log(v:val)')))

0 commit comments

Comments
 (0)