1
0
forked from aniani/vim

updated for version 7.4.434

Problem:    gettabvar() is not consistent with getwinvar() and getbufvar().
Solution:   Return a dict with all variables when the varname is empty.
            (Yasuhiro Matsumoto)
This commit is contained in:
Bram Moolenaar
2014-09-09 16:13:08 +02:00
parent 13e2a0af66
commit 0e2ea1beb4
5 changed files with 18 additions and 4 deletions

View File

@@ -3575,6 +3575,8 @@ gettabvar({tabnr}, {varname} [, {def}]) *gettabvar()*
Get the value of a tab-local variable {varname} in tab page
{tabnr}. |t:var|
Tabs are numbered starting with one.
When {varname} is empty a dictionary with all tab-local
variables is returned.
Note that the name without "t:" must be used.
When the tab or variable doesn't exist {def} or an empty
string is returned, there is no error message.