mirror of
https://github.com/zoriya/vim.git
synced 2026-06-03 04:03:06 +00:00
runtime(doc): correct getscriptinfo() example (#14718)
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>
This commit is contained in:
@@ -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
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -4382,7 +4382,7 @@ getscriptinfo([{opts}]) *getscriptinfo()*
|
|||||||
|
|
||||||
Examples: >
|
Examples: >
|
||||||
:echo getscriptinfo({'name': 'myscript'})
|
:echo getscriptinfo({'name': 'myscript'})
|
||||||
:echo getscriptinfo({'sid': 15}).variables
|
:echo getscriptinfo({'sid': 15})[0].variables
|
||||||
<
|
<
|
||||||
gettabinfo([{tabnr}]) *gettabinfo()*
|
gettabinfo([{tabnr}]) *gettabinfo()*
|
||||||
If {tabnr} is not specified, then information about all the
|
If {tabnr} is not specified, then information about all the
|
||||||
|
|||||||
Reference in New Issue
Block a user