diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-24 16:30:36 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-24 16:30:36 +0100 |
commit | 753885b6c5b9021184daa94d32fd8bf025f1b488 (patch) | |
tree | d0d9e106e111e6d1bf3f200ca83a4b0a3fad7ae0 /runtime | |
parent | f5240b96f721b08d703340ff0b2e67b79fb8b821 (diff) | |
download | vim-git-753885b6c5b9021184daa94d32fd8bf025f1b488.tar.gz |
patch 9.0.0253: a symlink to an autoload script results in two entriesv9.0.0253
Problem: A symlink to an autoload script results in two entries in the list
of scripts, items expected in one are actually in the other.
Solution: Have one script item refer to the actually sourced one.
(closes #10960)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/builtin.txt | 13 | ||||
-rw-r--r-- | runtime/doc/repeat.txt | 4 |
2 files changed, 12 insertions, 5 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 00ae665f8..592892925 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() 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,17 +4089,20 @@ getregtype([{regname}]) *getregtype()* Can also be used as a |method|: > GetRegname()->getregtype() -getscriptinfo() *getscriptinfo()* +getscriptinfo() *getscriptinfo()* Returns a |List| with information about all the sourced Vim - scripts in the order they were sourced. (|:scriptinfo|) + scripts in the order they were sourced, like what + `:scriptnames` shows. Each item in the returned List is a |Dict| with the following items: autoload set to TRUE for a script that was used with - |import autoload| but was not actually sourced - yet. + `import autoload` but was not actually sourced + yet (see |import-autoload|). name vim script file name. sid script ID |<SID>|. + sourced if this script is an alias this is the script + ID of the actually sourced script, otherwise zero gettabinfo([{tabnr}]) *gettabinfo()* If {tabnr} is not specified, then information about all the diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt index f9d0b6698..f8602ba8c 100644 --- a/runtime/doc/repeat.txt +++ b/runtime/doc/repeat.txt @@ -417,6 +417,10 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|. For a script that was used with `import autoload` but was not actually sourced yet an "A" is shown after the script ID. + For a script that was referred to by one name but + after resolving symbolic links got sourced with + another name the other script is after "->". E.g. + "20->22" means script 20 was sourced as script 22. {not available when compiled without the |+eval| feature} |