mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 20:43:46 -05:00
Handle tabs in commit subject
References https://github.com/tpope/vim-fugitive/pull/1713
This commit is contained in:
@@ -1702,8 +1702,8 @@ endfunction
|
|||||||
|
|
||||||
function! s:QueryLog(refspec) abort
|
function! s:QueryLog(refspec) abort
|
||||||
let lines = s:LinesError(['log', '-n', '256', '--pretty=format:%h%x09%s', a:refspec, '--'])[0]
|
let lines = s:LinesError(['log', '-n', '256', '--pretty=format:%h%x09%s', a:refspec, '--'])[0]
|
||||||
call map(lines, 'split(v:val, "\t")')
|
call map(lines, 'split(v:val, "\t", 1)')
|
||||||
call map(lines, '{"type": "Log", "commit": v:val[0], "subject": v:val[-1]}')
|
call map(lines, '{"type": "Log", "commit": v:val[0], "subject": join(v:val[1 : -1], "\t")}')
|
||||||
return lines
|
return lines
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user