|
Karsten Hopp |
444314 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
444314 |
Subject: Patch 7.4.442
|
|
Karsten Hopp |
444314 |
Fcc: outbox
|
|
Karsten Hopp |
444314 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
444314 |
Mime-Version: 1.0
|
|
Karsten Hopp |
444314 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
444314 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
444314 |
------------
|
|
Karsten Hopp |
444314 |
|
|
Karsten Hopp |
444314 |
Patch 7.4.442 (after 7.4.434)
|
|
Karsten Hopp |
444314 |
Problem: Using unitinialized variable.
|
|
Karsten Hopp |
444314 |
Solution: Pass the first window of the tabpage.
|
|
Karsten Hopp |
444314 |
Files: src/eval.c
|
|
Karsten Hopp |
444314 |
|
|
Karsten Hopp |
444314 |
|
|
Karsten Hopp |
444314 |
*** ../vim-7.4.441/src/eval.c 2014-09-09 16:13:05.040531695 +0200
|
|
Karsten Hopp |
444314 |
--- src/eval.c 2014-09-09 22:52:50.916584088 +0200
|
|
Karsten Hopp |
444314 |
***************
|
|
Karsten Hopp |
444314 |
*** 12071,12077 ****
|
|
Karsten Hopp |
444314 |
typval_T *argvars;
|
|
Karsten Hopp |
444314 |
typval_T *rettv;
|
|
Karsten Hopp |
444314 |
{
|
|
Karsten Hopp |
444314 |
! win_T *win, *oldcurwin;
|
|
Karsten Hopp |
444314 |
tabpage_T *tp, *oldtabpage;
|
|
Karsten Hopp |
444314 |
dictitem_T *v;
|
|
Karsten Hopp |
444314 |
char_u *varname;
|
|
Karsten Hopp |
444314 |
--- 12071,12077 ----
|
|
Karsten Hopp |
444314 |
typval_T *argvars;
|
|
Karsten Hopp |
444314 |
typval_T *rettv;
|
|
Karsten Hopp |
444314 |
{
|
|
Karsten Hopp |
444314 |
! win_T *oldcurwin;
|
|
Karsten Hopp |
444314 |
tabpage_T *tp, *oldtabpage;
|
|
Karsten Hopp |
444314 |
dictitem_T *v;
|
|
Karsten Hopp |
444314 |
char_u *varname;
|
|
Karsten Hopp |
444314 |
***************
|
|
Karsten Hopp |
444314 |
*** 12084,12092 ****
|
|
Karsten Hopp |
444314 |
tp = find_tabpage((int)get_tv_number_chk(&argvars[0], NULL));
|
|
Karsten Hopp |
444314 |
if (tp != NULL && varname != NULL)
|
|
Karsten Hopp |
444314 |
{
|
|
Karsten Hopp |
444314 |
! /* Set curwin to be our win, temporarily. Also set the tabpage,
|
|
Karsten Hopp |
444314 |
! * otherwise the window is not valid. */
|
|
Karsten Hopp |
444314 |
! switch_win(&oldcurwin, &oldtabpage, win, tp, TRUE);
|
|
Karsten Hopp |
444314 |
|
|
Karsten Hopp |
444314 |
/* look up the variable */
|
|
Karsten Hopp |
444314 |
/* Let gettabvar({nr}, "") return the "t:" dictionary. */
|
|
Karsten Hopp |
444314 |
--- 12084,12092 ----
|
|
Karsten Hopp |
444314 |
tp = find_tabpage((int)get_tv_number_chk(&argvars[0], NULL));
|
|
Karsten Hopp |
444314 |
if (tp != NULL && varname != NULL)
|
|
Karsten Hopp |
444314 |
{
|
|
Karsten Hopp |
444314 |
! /* Set tp to be our tabpage, temporarily. Also set the window to the
|
|
Karsten Hopp |
444314 |
! * first window in the tabpage, otherwise the window is not valid. */
|
|
Karsten Hopp |
444314 |
! switch_win(&oldcurwin, &oldtabpage, tp->tp_firstwin, tp, TRUE);
|
|
Karsten Hopp |
444314 |
|
|
Karsten Hopp |
444314 |
/* look up the variable */
|
|
Karsten Hopp |
444314 |
/* Let gettabvar({nr}, "") return the "t:" dictionary. */
|
|
Karsten Hopp |
444314 |
*** ../vim-7.4.441/src/version.c 2014-09-09 18:45:45.888551705 +0200
|
|
Karsten Hopp |
444314 |
--- src/version.c 2014-09-09 23:10:27.544586396 +0200
|
|
Karsten Hopp |
444314 |
***************
|
|
Karsten Hopp |
444314 |
*** 743,744 ****
|
|
Karsten Hopp |
444314 |
--- 743,746 ----
|
|
Karsten Hopp |
444314 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
444314 |
+ /**/
|
|
Karsten Hopp |
444314 |
+ 442,
|
|
Karsten Hopp |
444314 |
/**/
|
|
Karsten Hopp |
444314 |
|
|
Karsten Hopp |
444314 |
--
|
|
Karsten Hopp |
444314 |
Two percent of zero is almost nothing.
|
|
Karsten Hopp |
444314 |
|
|
Karsten Hopp |
444314 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
444314 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
444314 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
444314 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|