aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-15 19:50:23 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-15 21:06:16 +0800
commitbcc971de15ed540356405f937d640eaffa4a03bb (patch)
treeebd853d8e81134cd7dad02ed4c7bd51849f8683b /runtime
parenteb151a9730f0000ff46e0b3467e29bb9f02ae362 (diff)
downloadrneovim-bcc971de15ed540356405f937d640eaffa4a03bb.tar.gz
rneovim-bcc971de15ed540356405f937d640eaffa4a03bb.tar.bz2
rneovim-bcc971de15ed540356405f937d640eaffa4a03bb.zip
vim-patch:9.0.0269: getscriptinfo() does not include the version
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 vim/vim#10962) https://github.com/vim/vim/commit/520f6ef60a59f7b5f3da9199999d13dbe817d3ce Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
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 3c940ccfa2..e32cac7839 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -223,7 +223,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}
@@ -3576,7 +3576,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.
@@ -3585,6 +3585,13 @@ getscriptinfo() *getscriptinfo()*
autoload always set to FALSE.
name vim script file name.
sid script ID |<SID>|.
+ version vimscript version, always 1
+
+ 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