Fix :Gstatus toggle on Unstaged heading

This commit is contained in:
Tim Pope
2019-01-01 23:41:28 -05:00
parent d4e06150cb
commit 51abc6a1bb

View File

@@ -2052,7 +2052,7 @@ function! s:StageToggle(lnum1,lnum2) abort
1
call search('^Unstaged','W')
return ''
elseif info.status ==# 'Unstaged'
elseif info.section ==# 'Unstaged'
call s:TreeChomp('add','.')
silent! edit!
1