]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): correct getscriptinfo() example (#14718)
authorzeertzjq <zeertzjq@outlook.com>
Sat, 4 May 2024 07:35:30 +0000 (15:35 +0800)
committerGitHub <noreply@github.com>
Sat, 4 May 2024 07:35:30 +0000 (09:35 +0200)
When "sid" is specified, it returns a List with a single item.

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/builtin.txt

index 79f3cd7c6882c12e43ee36d6aa48c0855f81ff68..47cc92cdf685a405e51c65afc8ef2f50c2062975 100644 (file)
@@ -1,4 +1,4 @@
-*builtin.txt*  For Vim version 9.1.  Last change: 2024 Apr 07
+*builtin.txt*  For Vim version 9.1.  Last change: 2024 May 04
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -4382,7 +4382,7 @@ getscriptinfo([{opts}])                                   *getscriptinfo()*
 
                Examples: >
                        :echo getscriptinfo({'name': 'myscript'})
-                       :echo getscriptinfo({'sid': 15}).variables
+                       :echo getscriptinfo({'sid': 15})[0].variables
 <
 gettabinfo([{tabnr}])                                  *gettabinfo()*
                If {tabnr} is not specified, then information about all the