From ad4881cb3c04048242f69dc77af2dde889c9beea Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 4 May 2024 15:35:30 +0800 Subject: runtime(doc): correct getscriptinfo() example (#14718) When "sid" is specified, it returns a List with a single item. Signed-off-by: zeertzjq Signed-off-by: Christian Brabandt --- runtime/doc/builtin.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/doc') 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 -- cgit v1.2.3