diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-04-13 21:36:46 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-05-29 22:57:31 +0100 |
commit | 2c6066b1309f78f9625a06d718142318e2376d2c (patch) | |
tree | 7541ac26ceca338e244ad7553474898ea2f188c4 /autoload | |
parent | 770da5ed0704b62bd172b3fe4595ccc8e61b0adf (diff) | |
download | dotnvim-2c6066b1309f78f9625a06d718142318e2376d2c.tar.gz dotnvim-2c6066b1309f78f9625a06d718142318e2376d2c.zip |
Upgraded
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/plug.vim | 4 |
1 files 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 |