diff src/testdir/test91.in @ 7042:e8eccb9621f7 v7.4.834

commit https://github.com/vim/vim/commit/7e47d1ac6a9ae0e5a7167aa34ff651a9c39c1641 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 25 16:19:05 2015 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Tue, 25 Aug 2015 17:20:27 +0200
parents 4176c48c7dd5
children 5780bd3a5a7e
line wrap: on
line diff
--- a/src/testdir/test91.in
+++ b/src/testdir/test91.in
@@ -5,8 +5,12 @@ STARTTEST
 :so small.vim
 :so mbyte.vim
 :"
+:" 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()
-:" Use strings to test for memory leaks.
 :let b:var_num = '1234'
 :let def_num = '5678'
 :$put =string(getbufvar(1, 'var_num'))