Pass correct files to git reset --patch

This commit is contained in:
Tim Pope
2015-03-29 16:29:18 -04:00
parent 0095769029
commit baa05dcfda

View File

@@ -973,7 +973,7 @@ function! s:StagePatch(lnum1,lnum2) abort
execute "Git add --patch -- ".join(map(add,'s:shellesc(v:val)'))
endif
if !empty(reset)
execute "Git reset --patch -- ".join(map(add,'s:shellesc(v:val)'))
execute "Git reset --patch -- ".join(map(reset,'s:shellesc(v:val)'))
endif
if exists('first_filename')
silent! edit!