summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-08-25 16:19:05 +0200
committerBram Moolenaar <Bram@vim.org>2015-08-25 16:19:05 +0200
commit7e47d1ac6a9ae0e5a7167aa34ff651a9c39c1641 (patch)
treefdf7b63f9c036732666fd197838cc24003862680 /src/testdir
parente68c25c677167bb90ac5ec77038e340c730b6567 (diff)
downloadvim-7e47d1ac6a9ae0e5a7167aa34ff651a9c39c1641.zip
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)
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test91.in6
-rw-r--r--src/testdir/test91.ok2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/testdir/test91.in b/src/testdir/test91.in
index b66776b1e..e1365cb74 100644
--- a/src/testdir/test91.in
+++ b/src/testdir/test91.in
@@ -5,8 +5,12 @@ STARTTEST
:so small.vim
:so mbyte.vim
:"
-:" Test for getbufvar()
:" Use strings to test for memory leaks.
+:" First, check that in an empty window, gettabvar() returns the correct value
+:let t:testvar='abcd'
+:$put =string(gettabvar(1,'testvar'))
+:$put =string(gettabvar(1,'testvar'))
+:" Test for getbufvar()
:let b:var_num = '1234'
:let def_num = '5678'
:$put =string(getbufvar(1, 'var_num'))
diff --git a/src/testdir/test91.ok b/src/testdir/test91.ok
index 809952b69..62adec10e 100644
--- a/src/testdir/test91.ok
+++ b/src/testdir/test91.ok
@@ -1,4 +1,6 @@
start:
+'abcd'
+'abcd'
'1234'
'1234'
{'var_num': '1234'}