From 09743e76a08249203c5afbf262dae32413d9b431 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 21 Oct 2012 22:54:59 -0400 Subject: [PATCH] Correct foldtext when diff.mnemonic is set --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 953e72e..03eb4f3 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2486,7 +2486,7 @@ function! fugitive#foldtext() abort let [add, remove] = [-1, -1] let filename = '' for lnum in range(v:foldstart, v:foldend) - if filename ==# '' && getline(lnum) =~# '^[+-]\{3\} [ab]/' + if filename ==# '' && getline(lnum) =~# '^[+-]\{3\} [abciow12]/' let filename = getline(lnum)[6:-1] endif if getline(lnum) =~# '^+'