aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-10-19 23:53:21 +0200
committerDuncaen <mail@duncano.de>2017-10-19 23:53:21 +0200
commit993db7e4a0db0a5ef1e56cf046da2524db3969c1 (patch)
tree695c91a9e9a2577c56e75642c8db85a6f23686d9
parent067059aeea26df93b1987691e738153686a112a5 (diff)
downloaddotfiles-993db7e4a0db0a5ef1e56cf046da2524db3969c1.tar.gz
vim: update plug.vim
-rw-r--r--vim/autoload/plug.vim7
1 files changed, 4 insertions, 3 deletions
diff --git a/vim/autoload/plug.vim b/vim/autoload/plug.vim
index d720e2f..143c377 100644
--- a/vim/autoload/plug.vim
+++ b/vim/autoload/plug.vim
@@ -2246,15 +2246,16 @@ function! s:status()
let unloaded = 0
let [cnt, total] = [0, len(g:plugs)]
for [name, spec] in items(g:plugs)
+ let is_dir = isdirectory(spec.dir)
if has_key(spec, 'uri')
- if isdirectory(spec.dir)
+ if is_dir
let [err, _] = s:git_validate(spec, 1)
let [valid, msg] = [empty(err), empty(err) ? 'OK' : err]
else
let [valid, msg] = [0, 'Not found. Try PlugInstall.']
endif
else
- if isdirectory(spec.dir)
+ if is_dir
let [valid, msg] = [1, 'OK']
else
let [valid, msg] = [0, 'Not found.']
@@ -2263,7 +2264,7 @@ function! s:status()
let cnt += 1
let ecnt += !valid
" `s:loaded` entry can be missing if PlugUpgraded
- if valid && get(s:loaded, name, -1) == 0
+ if is_dir && get(s:loaded, name, -1) == 0
let unloaded = 1
let msg .= ' (not loaded)'
endif