aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-04-29 05:49:34 +0200
committerTeddy Wing2017-04-29 05:49:34 +0200
commit4bdd26ecda16e202b5725a14a8204618032c38f0 (patch)
treef5490408fca95d08125ac24524416813f733c5e3
parentfcbbe74cca8c576857ac701e31ec6c83360158b3 (diff)
downloadvim-gitcha-4bdd26ecda16e202b5725a14a8204618032c38f0.tar.bz2
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.
-rw-r--r--autoload/gitcha.vim6
1 files changed, 3 insertions, 3 deletions
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,