vim-patch:7.4.834

Problem:    gettabvar() doesn't work after Vim start. (Szymon Wrozynski)
Solution:   Handle first window in tab still being NULL. (Christian Brabandt)

7e47d1ac6a
This commit is contained in:
Jurica Bradaric
2016-02-09 20:11:23 +01:00
parent 3be74ac634
commit f19e4dd1df
3 changed files with 10 additions and 4 deletions

View File

@@ -13,6 +13,9 @@ describe('context variables', function()
-- Test for getbufvar().
-- Use strings to test for memory leaks.
source([[
let t:testvar='abcd'
$put =string(gettabvar(1, 'testvar'))
$put =string(gettabvar(1, 'testvar'))
let b:var_num = '1234'
let def_num = '5678'
$put =string(getbufvar(1, 'var_num'))
@@ -125,6 +128,8 @@ describe('context variables', function()
-- Assert buffer contents.
expect([[
start:
'abcd'
'abcd'
'1234'
'1234'
{'var_num': '1234'}