commit edd054f76f49373eedd7858474d95e1d6847fec2 (tree)
parent 37088aaf659512e48e3463f7c6ec1bf16b240173
Author: Tim Pope <code@tpope.net>
Date: Sun, 22 Sep 2019 21:25:15 -0400
Fix visual mode exclusion for staging on section header
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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