From 4bdd26ecda16e202b5725a14a8204618032c38f0 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 29 Apr 2017 05:49:34 +0200 Subject: autoload/gitcha.vim: Include entire subject in popup extra text Fix the subject issue from 0773fdd7bde5e7ce462c15bd1c71db3a3e46862a and show the entire commit subject in the popup menu. --- autoload/gitcha.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'autoload') diff --git a/autoload/gitcha.vim b/autoload/gitcha.vim index d84cf15..9e397fe 100644 --- a/autoload/gitcha.vim +++ b/autoload/gitcha.vim @@ -40,9 +40,9 @@ function! s:BuildMatchDictionary(rev_list) let commits = split(a:rev_list, '\n') for commit in commits - let commit_parts = split(commit) - let sha = commit_parts[0] - let subject = commit_parts[1] + let separator = stridx(commit, ' ') + let sha = strpart(commit, 0, separator) + let subject = strpart(commit, separator + 1) call add(matches, { \ 'word': sha, -- cgit v1.2.3