Fix - on :Gstatus headers

This commit is contained in:
Tim Pope 2012-07-16 17:39:05 -04:00
parent 8ba04c2476
commit d1971558b5

View File

@ -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!