From 51abc6a1bb9a675541aed4bf126cf0797b8f4009 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 1 Jan 2019 23:41:28 -0500 Subject: [PATCH] Fix :Gstatus toggle on Unstaged heading --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 3ad10f5..fae43c8 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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