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