From 0205ae8d45f727a88e6c18f9a3bc1a3371fafb2e Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 24 Mar 2021 14:19:37 -0400 Subject: [PATCH] Handle tabs in commit subject References https://github.com/tpope/vim-fugitive/pull/1713 --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 1a97fb5..2fad56c 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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