瀏覽代碼

Fix git version detection.

midchildan 9 年之前
父節點
當前提交
8f38888fad
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plug.vim

+ 1 - 1
plug.vim

@@ -312,7 +312,7 @@ endfunction
 
 function! s:git_version_requirement(...)
   if !exists('s:git_version')
-    let s:git_version = map(split(split(s:system('git --version'))[-1], '\.'), 'str2nr(v:val)')
+    let s:git_version = map(split(split(s:system('git --version'))[2], '\.'), 'str2nr(v:val)')
   endif
   return s:version_requirement(s:git_version, a:000)
 endfunction