|
Karsten Hopp |
b97fed |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
b97fed |
Subject: Patch 7.4.834
|
|
Karsten Hopp |
b97fed |
Fcc: outbox
|
|
Karsten Hopp |
b97fed |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
b97fed |
Mime-Version: 1.0
|
|
Karsten Hopp |
b97fed |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
b97fed |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
b97fed |
------------
|
|
Karsten Hopp |
b97fed |
|
|
Karsten Hopp |
b97fed |
Patch 7.4.834
|
|
Karsten Hopp |
b97fed |
Problem: gettabvar() doesn't work after Vim start. (Szymon Wrozynski)
|
|
Karsten Hopp |
b97fed |
Solution: Handle first window in tab still being NULL. (Christian Brabandt)
|
|
Karsten Hopp |
b97fed |
Files: src/eval.c, src/testdir/test91.in, src/testdir/test91.ok
|
|
Karsten Hopp |
b97fed |
|
|
Karsten Hopp |
b97fed |
|
|
Karsten Hopp |
b97fed |
*** ../vim-7.4.833/src/eval.c 2015-08-13 23:28:38.242878357 +0200
|
|
Karsten Hopp |
b97fed |
--- src/eval.c 2015-08-25 16:14:37.962043098 +0200
|
|
Karsten Hopp |
b97fed |
***************
|
|
Karsten Hopp |
b97fed |
*** 12291,12297 ****
|
|
Karsten Hopp |
b97fed |
{
|
|
Karsten Hopp |
b97fed |
/* Set tp to be our tabpage, temporarily. Also set the window to the
|
|
Karsten Hopp |
b97fed |
* first window in the tabpage, otherwise the window is not valid. */
|
|
Karsten Hopp |
b97fed |
! if (switch_win(&oldcurwin, &oldtabpage, tp->tp_firstwin, tp, TRUE)
|
|
Karsten Hopp |
b97fed |
== OK)
|
|
Karsten Hopp |
b97fed |
{
|
|
Karsten Hopp |
b97fed |
/* look up the variable */
|
|
Karsten Hopp |
b97fed |
--- 12291,12298 ----
|
|
Karsten Hopp |
b97fed |
{
|
|
Karsten Hopp |
b97fed |
/* Set tp to be our tabpage, temporarily. Also set the window to the
|
|
Karsten Hopp |
b97fed |
* first window in the tabpage, otherwise the window is not valid. */
|
|
Karsten Hopp |
b97fed |
! if (switch_win(&oldcurwin, &oldtabpage,
|
|
Karsten Hopp |
b97fed |
! tp->tp_firstwin == NULL ? firstwin : tp->tp_firstwin, tp, TRUE)
|
|
Karsten Hopp |
b97fed |
== OK)
|
|
Karsten Hopp |
b97fed |
{
|
|
Karsten Hopp |
b97fed |
/* look up the variable */
|
|
Karsten Hopp |
b97fed |
*** ../vim-7.4.833/src/testdir/test91.in 2014-09-09 16:13:05.040531695 +0200
|
|
Karsten Hopp |
b97fed |
--- src/testdir/test91.in 2015-08-25 16:14:21.978209619 +0200
|
|
Karsten Hopp |
b97fed |
***************
|
|
Karsten Hopp |
b97fed |
*** 5,12 ****
|
|
Karsten Hopp |
b97fed |
:so small.vim
|
|
Karsten Hopp |
b97fed |
:so mbyte.vim
|
|
Karsten Hopp |
b97fed |
:"
|
|
Karsten Hopp |
b97fed |
- :" Test for getbufvar()
|
|
Karsten Hopp |
b97fed |
:" Use strings to test for memory leaks.
|
|
Karsten Hopp |
b97fed |
:let b:var_num = '1234'
|
|
Karsten Hopp |
b97fed |
:let def_num = '5678'
|
|
Karsten Hopp |
b97fed |
:$put =string(getbufvar(1, 'var_num'))
|
|
Karsten Hopp |
b97fed |
--- 5,16 ----
|
|
Karsten Hopp |
b97fed |
:so small.vim
|
|
Karsten Hopp |
b97fed |
:so mbyte.vim
|
|
Karsten Hopp |
b97fed |
:"
|
|
Karsten Hopp |
b97fed |
:" Use strings to test for memory leaks.
|
|
Karsten Hopp |
b97fed |
+ :" First, check that in an empty window, gettabvar() returns the correct value
|
|
Karsten Hopp |
b97fed |
+ :let t:testvar='abcd'
|
|
Karsten Hopp |
b97fed |
+ :$put =string(gettabvar(1,'testvar'))
|
|
Karsten Hopp |
b97fed |
+ :$put =string(gettabvar(1,'testvar'))
|
|
Karsten Hopp |
b97fed |
+ :" Test for getbufvar()
|
|
Karsten Hopp |
b97fed |
:let b:var_num = '1234'
|
|
Karsten Hopp |
b97fed |
:let def_num = '5678'
|
|
Karsten Hopp |
b97fed |
:$put =string(getbufvar(1, 'var_num'))
|
|
Karsten Hopp |
b97fed |
*** ../vim-7.4.833/src/testdir/test91.ok 2014-09-09 16:13:05.040531695 +0200
|
|
Karsten Hopp |
b97fed |
--- src/testdir/test91.ok 2015-08-25 16:14:21.978209619 +0200
|
|
Karsten Hopp |
b97fed |
***************
|
|
Karsten Hopp |
b97fed |
*** 1,4 ****
|
|
Karsten Hopp |
b97fed |
--- 1,6 ----
|
|
Karsten Hopp |
b97fed |
start:
|
|
Karsten Hopp |
b97fed |
+ 'abcd'
|
|
Karsten Hopp |
b97fed |
+ 'abcd'
|
|
Karsten Hopp |
b97fed |
'1234'
|
|
Karsten Hopp |
b97fed |
'1234'
|
|
Karsten Hopp |
b97fed |
{'var_num': '1234'}
|
|
Karsten Hopp |
b97fed |
*** ../vim-7.4.833/src/version.c 2015-08-25 15:39:51.459826645 +0200
|
|
Karsten Hopp |
b97fed |
--- src/version.c 2015-08-25 16:14:09.318341510 +0200
|
|
Karsten Hopp |
b97fed |
***************
|
|
Karsten Hopp |
b97fed |
*** 743,744 ****
|
|
Karsten Hopp |
b97fed |
--- 743,746 ----
|
|
Karsten Hopp |
b97fed |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
b97fed |
+ /**/
|
|
Karsten Hopp |
b97fed |
+ 834,
|
|
Karsten Hopp |
b97fed |
/**/
|
|
Karsten Hopp |
b97fed |
|
|
Karsten Hopp |
b97fed |
--
|
|
Karsten Hopp |
b97fed |
A special law prohibits unmarried women from parachuting on Sunday or she
|
|
Karsten Hopp |
b97fed |
shall risk arrest, fine, and/or jailing.
|
|
Karsten Hopp |
b97fed |
[real standing law in Florida, United States of America]
|
|
Karsten Hopp |
b97fed |
|
|
Karsten Hopp |
b97fed |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
b97fed |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
b97fed |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
b97fed |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|