runtime(doc): correct getscriptinfo() example (#14718)
Commit:
https://github.com/vim/vim/commit/ad4881cb3c04048242f69dc77af2dde889c9beea
Author: zeertzjq <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 79f3cd7c6..47cc92cdf 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
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1s3A4y-00EbNB-0K%40256bit.org.