References #97.
This commit is contained in:
Tim Pope 2014-06-22 08:31:12 -04:00
parent 021918c3f6
commit 82580253e8

View File

@ -792,9 +792,9 @@ function! s:StageUndo() abort
if section ==# 'untracked'
call delete(s:repo().tree(filename))
elseif section ==# 'unstaged'
call repo.get_chomp('checkout', '--', filename)
call repo.git_chomp('checkout', '--', filename)
else
call repo.get_chomp('checkout', 'HEAD', '--', filename)
call repo.git_chomp('checkout', 'HEAD', '--', filename)
endif
call s:StageReloadSeek(filename, line('.'), line('.'))
let @" = hash