From edd054f76f49373eedd7858474d95e1d6847fec2 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 22 Sep 2019 21:25:15 -0400 Subject: [PATCH] Fix visual mode exclusion for staging on section header --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index c7b0777..581fe26 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2583,7 +2583,7 @@ endfunction function! s:Do(action, visual) abort let line = getline('.') let reload = 0 - if !a:0 && !v:count && line =~# '^[A-Z][a-z]' + if !a:visual && !v:count && line =~# '^[A-Z][a-z]' let header = matchstr(line, '^\S\+\ze:') if len(header) && exists('*s:Do' . a:action . header . 'Header') let reload = s:Do{a:action}{header}Header(matchstr(line, ': \zs.*')) > 0