summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2022-08-25 17:40:40 +0100
committerBram Moolenaar <Bram@vim.org>2022-08-25 17:40:40 +0100
commit520f6ef60a59f7b5f3da9199999d13dbe817d3ce (patch)
tree7982ec9430d2766a4f4f53066e2172f8311e328a /runtime
parent0166e398d11a09662d783fe5db62b414045880f8 (diff)
patch 9.0.0269: getscriptinfo() does not include the versionv9.0.0269
Problem: getscriptinfo() does not include the version. Cannot select entries by script name. Solution: Add the "version" item and the "name" argument. (Yegappan Lakshmanan, closes #10962)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/builtin.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 49d538d1e7..15af01fbbf 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -253,7 +253,7 @@ getreg([{regname} [, 1 [, {list}]]])
String or List contents of a register
getreginfo([{regname}]) Dict information about a register
getregtype([{regname}]) String type of a register
-getscriptinfo() List list of sourced scripts
+getscriptinfo([{opts}]) List list of sourced scripts
gettabinfo([{expr}]) List list of tab pages
gettabvar({nr}, {varname} [, {def}])
any variable {varname} in tab {nr} or {def}
@@ -4089,7 +4089,7 @@ getregtype([{regname}]) *getregtype()*
Can also be used as a |method|: >
GetRegname()->getregtype()
-getscriptinfo() *getscriptinfo()*
+getscriptinfo([{opts}) *getscriptinfo()*
Returns a |List| with information about all the sourced Vim
scripts in the order they were sourced, like what
`:scriptnames` shows.
@@ -4104,6 +4104,13 @@ getscriptinfo() *getscriptinfo()*
sourced script ID of the actually sourced script that
this script name links to, if any, otherwise
zero
+ version vimscript version (|scriptversion|)
+
+ The optional Dict argument {opts} supports the following
+ items:
+ name script name match pattern. If specified,
+ information about scripts with name
+ that match the pattern "name" are returned.
gettabinfo([{tabnr}]) *gettabinfo()*
If {tabnr} is not specified, then information about all the