diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-05-04 15:35:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-04 09:35:30 +0200 |
commit | ad4881cb3c04048242f69dc77af2dde889c9beea (patch) | |
tree | 3f85f5a0ceebe40c7fcbd03cd09b5080594b6cc9 /runtime/doc/builtin.txt | |
parent | 5715a726282018e708cff7dd930c9f8f7c37fa7e (diff) |
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>
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r-- | runtime/doc/builtin.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 79f3cd7c68..47cc92cdf6 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -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 |