mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Fix shortened :call command
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user