Fix shortened :call command

This commit is contained in:
Tim Pope
2024-02-11 21:30:36 -05:00
parent 9f92ff14d9
commit 801b0417a5

View File

@@ -8347,8 +8347,8 @@ function! fugitive#Foldtext() abort
elseif &filetype ==# 'gitcommit' && line_foldstart =~# '^# .*:$'
let lines = getline(v:foldstart, v:foldend)
call filter(lines, 'v:val =~# "^#\t"')
cal map(lines, "s:sub(v:val, '^#\t%(modified: +|renamed: +)=', '')")
cal map(lines, "s:sub(v:val, '^([[:alpha:] ]+): +(.*)', '\\2 (\\1)')")
call map(lines, "s:sub(v:val, '^#\t%(modified: +|renamed: +)=', '')")
call map(lines, "s:sub(v:val, '^([[:alpha:] ]+): +(.*)', '\\2 (\\1)')")
return line_foldstart.' '.join(lines, ', ')
endif
return foldtext()