aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-02-23 23:40:32 +0100
committerDuncaen <mail@duncano.de>2017-02-23 23:40:32 +0100
commit5fdcefff33c29a7fca9dde493f9dceed43318c53 (patch)
treed664120a3fc088d51c56f9553a2782a96fed0e5a
parent2518995bf7b92955cd1d34c47e73f0894ec3e45c (diff)
downloaddotfiles-5fdcefff33c29a7fca9dde493f9dceed43318c53.tar.gz
vim: update plug.vim
-rw-r--r--vim/autoload/plug.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/autoload/plug.vim b/vim/autoload/plug.vim
index 2a61349..7819a5a 100644
--- a/vim/autoload/plug.vim
+++ b/vim/autoload/plug.vim
@@ -621,10 +621,10 @@ function! s:syntax()
syn match plugTag /(tag: [^)]\+)/
syn match plugInstall /\(^+ \)\@<=[^:]*/
syn match plugUpdate /\(^* \)\@<=[^:]*/
- syn match plugCommit /^ \X*[0-9a-f]\{7} .*/ contains=plugRelDate,plugEdge,plugTag
+ syn match plugCommit /^ \X*[0-9a-f]\{7,9} .*/ contains=plugRelDate,plugEdge,plugTag
syn match plugEdge /^ \X\+$/
syn match plugEdge /^ \X*/ contained nextgroup=plugSha
- syn match plugSha /[0-9a-f]\{7}/ contained
+ syn match plugSha /[0-9a-f]\{7,9}/ contained
syn match plugRelDate /([^)]*)$/ contained
syn match plugNotLoaded /(not loaded)$/
syn match plugError /^x.*/
@@ -2285,7 +2285,7 @@ function! s:preview_commit()
let b:plug_preview = !s:is_preview_window_open()
endif
- let sha = matchstr(getline('.'), '^ \X*\zs[0-9a-f]\{7}')
+ let sha = matchstr(getline('.'), '^ \X*\zs[0-9a-f]\{7,9}')
if empty(sha)
return
endif