Patch 7.4.1704
Problem: Using freed memory with "wincmd p". (Dominique Pelle)
Solution: Also clear "prevwin" in other tab pages.
Files: src/window.c
*** ../vim-7.4.1703/src/window.c 2016-03-31 22:27:36.660109374 +0200
--- src/window.c 2016-04-03 21:15:23.362842110 +0200
***************
*** 340,346 ****
/* cursor to last accessed (previous) window */
case 'p':
case Ctrl_P:
! if (prevwin == NULL)
beep_flush();
else
win_goto(prevwin);
--- 340,346 ----
/* cursor to last accessed (previous) window */
case 'p':
case Ctrl_P:
! if (!win_valid(prevwin))
beep_flush();
else
win_goto(prevwin);
***************
*** 4577,4584 ****
unref_var_dict(wp->w_vars);
#endif
! if (prevwin == wp)
! prevwin = NULL;
win_free_lsize(wp);
for (i = 0; i < wp->w_tagstacklen; ++i)
--- 4577,4591 ----
unref_var_dict(wp->w_vars);
#endif
! {
! tabpage_T *ttp;
!
! if (prevwin == wp)
! prevwin = NULL;
! for (ttp = first_tabpage; ttp != NULL; ttp = ttp->tp_next)
! if (ttp->tp_prevwin == wp)
! ttp->tp_prevwin = NULL;
! }
win_free_lsize(wp);
for (i = 0; i < wp->w_tagstacklen; ++i)
*** ../vim-7.4.1703/src/version.c 2016-04-03 20:57:17.013726476 +0200
--- src/version.c 2016-04-03 21:19:58.504042155 +0200
***************
*** 750,751 ****
--- 750,753 ----
{ /* Add new patch number below this line */
+ /**/
+ 1704,
/**/
--
hundred-and-one symptoms of being an internet addict:
212. Your Internet group window has more icons than your Accessories window.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.