annotate runtime/plugin/getscriptPlugin.vim @ 20195:a2447c58da25 v8.2.0653

patch 8.2.0653: using uninitialized pointer Commit: https://github.com/vim/vim/commit/03afdcf1f449d23c9b6bc56d8b61f31dd4e11836 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 27 23:39:30 2020 +0200 patch 8.2.0653: using uninitialized pointer Problem: using uninitialized pointer. Solution: Move assignment up. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Mon, 27 Apr 2020 23:45:03 +0200
parents 1a951a4beee3
children 02bd0fe77c68
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
1 " ---------------------------------------------------------------------
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
2 " getscriptPlugin.vim
4339
22fa3049e934 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3281
diff changeset
3 " Author: Charles E. Campbell
5618
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4339
diff changeset
4 " Date: Nov 29, 2013
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
5 " Installing: :help glvs-install
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
6 " Usage: :help glvs
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
7 "
1228
5eb1ac6f92ad updated for version 7.1b
vimboss
parents: 1125
diff changeset
8 " GetLatestVimScripts: 642 1 :AutoInstall: getscript.vim
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
9 "
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
10 " (Rom 15:11 WEB) Again, "Praise the Lord, all you Gentiles! Let
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
11 " all the peoples praise Him."
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
12 " ---------------------------------------------------------------------
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
13 " Initialization: {{{1
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
14 " if you're sourcing this file, surely you can't be
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
15 " expecting vim to be in its vi-compatible mode
5618
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4339
diff changeset
16 if exists("g:loaded_getscriptPlugin")
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4339
diff changeset
17 finish
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4339
diff changeset
18 endif
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4339
diff changeset
19 if &cp
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
20 if &verbose
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
21 echo "GetLatestVimScripts is not vi-compatible; not loaded (you need to set nocp)"
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
22 endif
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
23 finish
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
24 endif
5618
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4339
diff changeset
25 let g:loaded_getscriptPlugin = "v36"
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
26 let s:keepcpo = &cpo
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
27 set cpo&vim
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
28
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
29 " ---------------------------------------------------------------------
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
30 " Public Interface: {{{1
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
31 com! -nargs=0 GetLatestVimScripts call getscript#GetLatestVimScripts()
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
32 com! -nargs=0 GetScripts call getscript#GetLatestVimScripts()
19099
1a951a4beee3 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 5618
diff changeset
33 sil! com -nargs=0 GLVS call getscript#GetLatestVimScripts()
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
34
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 1228
diff changeset
35 " ---------------------------------------------------------------------
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
36 " Restore Options: {{{1
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
37 let &cpo= s:keepcpo
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 1228
diff changeset
38 unlet s:keepcpo
1125
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
39
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
40 " ---------------------------------------------------------------------
96cd8222a819 updated for version 7.1a
vimboss
parents:
diff changeset
41 " vim: ts=8 sts=2 fdm=marker nowrap