From 2c6066b1309f78f9625a06d718142318e2376d2c Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 13 Apr 2022 21:36:46 +0100 Subject: Upgraded --- autoload/plug.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/plug.vim b/autoload/plug.vim index 8a195d3..46416b8 100644 --- a/autoload/plug.vim +++ b/autoload/plug.vim @@ -2766,9 +2766,9 @@ function! s:snapshot(force, ...) abort 1 let anchor = line('$') - 3 let names = sort(keys(filter(copy(g:plugs), - \'has_key(v:val, "uri") && !has_key(v:val, "commit") && isdirectory(v:val.dir)'))) + \'has_key(v:val, "uri") && isdirectory(v:val.dir)'))) for name in reverse(names) - let sha = s:git_revision(g:plugs[name].dir) + let sha = has_key(g:plugs[name], 'commit') ? g:plugs[name].commit : s:git_revision(g:plugs[name].dir) if !empty(sha) call append(anchor, printf("silent! let g:plugs['%s'].commit = '%s'", name, sha)) redraw -- cgit v1.2.3