diff --git a/plugin/git.vim b/plugin/git.vim index a88329b..15294a3 100644 --- a/plugin/git.vim +++ b/plugin/git.vim @@ -110,7 +110,7 @@ function! GitStatus() call OpenGitBuffer(git_output) setlocal filetype=git-status nnoremap :GitAdd :call RefreshGitStatus() - nnoremap - :silent !git reset HEAD -- =expand(''):call RefreshGitStatus() + nnoremap - :call GitDoCommand('reset '. 'HEAD ' . expand('')):call RefreshGitStatus() endfunction function! s:RefreshGitStatus()