Skip to content

Commit

Permalink
Handle tabs in commit subject
Browse files Browse the repository at this point in the history
References #1713
  • Loading branch information
tpope committed Mar 24, 2021
1 parent 11b824a commit 0205ae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/fugitive.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1702,8 +1702,8 @@ endfunction

function! s:QueryLog(refspec) abort
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, '{"type": "Log", "commit": v:val[0], "subject": v:val[-1]}')
call map(lines, 'split(v:val, "\t", 1)')
call map(lines, '{"type": "Log", "commit": v:val[0], "subject": join(v:val[1 : -1], "\t")}')
return lines
endfunction

Expand Down

0 comments on commit 0205ae8

Please sign in to comment.