Karsten Hopp 563107
To: vim_dev@googlegroups.com
Karsten Hopp 563107
Subject: Patch 7.3.588
Karsten Hopp 563107
Fcc: outbox
Karsten Hopp 563107
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 563107
Mime-Version: 1.0
Karsten Hopp 563107
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 563107
Content-Transfer-Encoding: 8bit
Karsten Hopp 563107
------------
Karsten Hopp 563107
Karsten Hopp 563107
Patch 7.3.588
Karsten Hopp 563107
Problem:    Crash on NULL pointer.
Karsten Hopp 563107
Solution:   Fix the immediate problem by checking for NULL. (Lech Lorens)
Karsten Hopp 563107
Files:	    src/window.c
Karsten Hopp 563107
Karsten Hopp 563107
Karsten Hopp 563107
*** ../vim-7.3.587/src/window.c	2012-06-13 18:15:13.000000000 +0200
Karsten Hopp 563107
--- src/window.c	2012-07-06 16:32:59.000000000 +0200
Karsten Hopp 563107
***************
Karsten Hopp 563107
*** 2184,2190 ****
Karsten Hopp 563107
      }
Karsten Hopp 563107
  
Karsten Hopp 563107
  #ifdef FEAT_AUTOCMD
Karsten Hopp 563107
!     if (win->w_closing || win->w_buffer->b_closing)
Karsten Hopp 563107
  	return; /* window is already being closed */
Karsten Hopp 563107
      if (win == aucmd_win)
Karsten Hopp 563107
      {
Karsten Hopp 563107
--- 2184,2190 ----
Karsten Hopp 563107
      }
Karsten Hopp 563107
  
Karsten Hopp 563107
  #ifdef FEAT_AUTOCMD
Karsten Hopp 563107
!     if (win->w_closing || (win->w_buffer != NULL && win->w_buffer->b_closing))
Karsten Hopp 563107
  	return; /* window is already being closed */
Karsten Hopp 563107
      if (win == aucmd_win)
Karsten Hopp 563107
      {
Karsten Hopp 563107
***************
Karsten Hopp 563107
*** 3723,3729 ****
Karsten Hopp 563107
  enter_tabpage(tp, old_curbuf, trigger_autocmds)
Karsten Hopp 563107
      tabpage_T	*tp;
Karsten Hopp 563107
      buf_T	*old_curbuf UNUSED;
Karsten Hopp 563107
!     int         trigger_autocmds UNUSED;
Karsten Hopp 563107
  {
Karsten Hopp 563107
      int		old_off = tp->tp_firstwin->w_winrow;
Karsten Hopp 563107
      win_T	*next_prevwin = tp->tp_prevwin;
Karsten Hopp 563107
--- 3723,3729 ----
Karsten Hopp 563107
  enter_tabpage(tp, old_curbuf, trigger_autocmds)
Karsten Hopp 563107
      tabpage_T	*tp;
Karsten Hopp 563107
      buf_T	*old_curbuf UNUSED;
Karsten Hopp 563107
!     int		trigger_autocmds UNUSED;
Karsten Hopp 563107
  {
Karsten Hopp 563107
      int		old_off = tp->tp_firstwin->w_winrow;
Karsten Hopp 563107
      win_T	*next_prevwin = tp->tp_prevwin;
Karsten Hopp 563107
***************
Karsten Hopp 563107
*** 3868,3874 ****
Karsten Hopp 563107
      void
Karsten Hopp 563107
  goto_tabpage_tp(tp, trigger_autocmds)
Karsten Hopp 563107
      tabpage_T	*tp;
Karsten Hopp 563107
!     int         trigger_autocmds;
Karsten Hopp 563107
  {
Karsten Hopp 563107
      /* Don't repeat a message in another tab page. */
Karsten Hopp 563107
      set_keep_msg(NULL, 0);
Karsten Hopp 563107
--- 3868,3874 ----
Karsten Hopp 563107
      void
Karsten Hopp 563107
  goto_tabpage_tp(tp, trigger_autocmds)
Karsten Hopp 563107
      tabpage_T	*tp;
Karsten Hopp 563107
!     int		trigger_autocmds;
Karsten Hopp 563107
  {
Karsten Hopp 563107
      /* Don't repeat a message in another tab page. */
Karsten Hopp 563107
      set_keep_msg(NULL, 0);
Karsten Hopp 563107
*** ../vim-7.3.587/src/version.c	2012-07-06 16:21:58.000000000 +0200
Karsten Hopp 563107
--- src/version.c	2012-07-06 16:37:47.000000000 +0200
Karsten Hopp 563107
***************
Karsten Hopp 563107
*** 716,717 ****
Karsten Hopp 563107
--- 716,719 ----
Karsten Hopp 563107
  {   /* Add new patch number below this line */
Karsten Hopp 563107
+ /**/
Karsten Hopp 563107
+     588,
Karsten Hopp 563107
  /**/
Karsten Hopp 563107
Karsten Hopp 563107
-- 
Karsten Hopp 563107
Momento mori, ergo carpe diem
Karsten Hopp 563107
Karsten Hopp 563107
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 563107
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 563107
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 563107
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///