changeset 35116:0085eaac614f

runtime(doc): correct getscriptinfo() example (#14718) Commit: https://github.com/vim/vim/commit/ad4881cb3c04048242f69dc77af2dde889c9beea Author: zeertzjq <zeertzjq@outlook.com> Date: Sat May 4 15:35:30 2024 +0800 runtime(doc): correct getscriptinfo() example (https://github.com/vim/vim/issues/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>
author Christian Brabandt <cb@256bit.org>
date Sat, 04 May 2024 09:45:06 +0200
parents d401437829ee
children 914339a89677
files runtime/doc/builtin.txt
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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}])					*getscriptin
 
 		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