diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index a083d6e..2649690 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -760,6 +760,7 @@ function! s:StageToggle(lnum1,lnum2) abort let line = getline(lnum) let repo = s:repo() if line =~# '^# .*:$' + let section = s:stage_section(lnum) if section ==# 'staged' call repo.git_chomp_in_tree('reset','-q') silent! edit!