mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 04:23:46 -05:00
Fix shortened :call command
This commit is contained in:
@@ -8347,8 +8347,8 @@ function! fugitive#Foldtext() abort
|
|||||||
elseif &filetype ==# 'gitcommit' && line_foldstart =~# '^# .*:$'
|
elseif &filetype ==# 'gitcommit' && line_foldstart =~# '^# .*:$'
|
||||||
let lines = getline(v:foldstart, v:foldend)
|
let lines = getline(v:foldstart, v:foldend)
|
||||||
call filter(lines, 'v:val =~# "^#\t"')
|
call filter(lines, 'v:val =~# "^#\t"')
|
||||||
cal map(lines, "s:sub(v:val, '^#\t%(modified: +|renamed: +)=', '')")
|
call 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, '^([[:alpha:] ]+): +(.*)', '\\2 (\\1)')")
|
||||||
return line_foldstart.' '.join(lines, ', ')
|
return line_foldstart.' '.join(lines, ', ')
|
||||||
endif
|
endif
|
||||||
return foldtext()
|
return foldtext()
|
||||||
|
|||||||
Reference in New Issue
Block a user