0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.4.442

Problem:    Using unitinialized variable.
Solution:   Pass the first window of the tabpage.
This commit is contained in:
Bram Moolenaar
2014-09-09 23:11:49 +02:00
parent 6e932461cb
commit 3089a1068d
2 changed files with 6 additions and 4 deletions

View File

@@ -12071,7 +12071,7 @@ f_gettabvar(argvars, rettv)
typval_T *argvars;
typval_T *rettv;
{
win_T *win, *oldcurwin;
win_T *oldcurwin;
tabpage_T *tp, *oldtabpage;
dictitem_T *v;
char_u *varname;
@@ -12084,9 +12084,9 @@ f_gettabvar(argvars, rettv)
tp = find_tabpage((int)get_tv_number_chk(&argvars[0], NULL));
if (tp != NULL && varname != NULL)
{
/* Set curwin to be our win, temporarily. Also set the tabpage,
* otherwise the window is not valid. */
switch_win(&oldcurwin, &oldtabpage, win, tp, TRUE);
/* Set tp to be our tabpage, temporarily. Also set the window to the
* first window in the tabpage, otherwise the window is not valid. */
switch_win(&oldcurwin, &oldtabpage, tp->tp_firstwin, tp, TRUE);
/* look up the variable */
/* Let gettabvar({nr}, "") return the "t:" dictionary. */

View File

@@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
442,
/**/
441,
/**/