aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2016-03-17 18:55:38 +0100
committerDuncaen <mail@duncano.de>2016-03-17 19:01:46 +0100
commit48cb37d6c05ad05c1803e81369315f65d8ae276b (patch)
tree1607894e725ee29f12e9ce99001727f73d02dea7
parent8b4f0059431d9f9586ab0c8bf5d1792fb649d800 (diff)
downloaddotfiles-48cb37d6c05ad05c1803e81369315f65d8ae276b.tar.gz
vim: update vim-plug
-rw-r--r--vim/autoload/plug.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/autoload/plug.vim b/vim/autoload/plug.vim
index 231073b..01b29a0 100644
--- a/vim/autoload/plug.vim
+++ b/vim/autoload/plug.vim
@@ -251,8 +251,9 @@ function! s:version_requirement(val, min)
endfunction
function! s:git_version_requirement(...)
- let s:git_version = get(s:, 'git_version',
- \ map(split(split(s:system('git --version'))[-1], '\.'), 'str2nr(v:val)'))
+ if !exists('s:git_version')
+ let s:git_version = map(split(split(s:system('git --version'))[-1], '\.'), 'str2nr(v:val)')
+ endif
return s:version_requirement(s:git_version, a:000)
endfunction