dcaee6
To: vim_dev@googlegroups.com
dcaee6
Subject: Patch 7.4.059
dcaee6
Fcc: outbox
dcaee6
From: Bram Moolenaar <Bram@moolenaar.net>
dcaee6
Mime-Version: 1.0
dcaee6
Content-Type: text/plain; charset=UTF-8
dcaee6
Content-Transfer-Encoding: 8bit
dcaee6
------------
dcaee6
dcaee6
Patch 7.4.059
dcaee6
Problem:    set_last_cursor() may encounter w_buffer being NULL.  (Matt
dcaee6
            Mkaniaris)
dcaee6
Solution:   Check for NULL.
dcaee6
Files:      src/mark.c
dcaee6
dcaee6
dcaee6
*** ../vim-7.4.058/src/mark.c	2013-08-02 17:22:10.000000000 +0200
dcaee6
--- src/mark.c	2013-11-03 00:18:35.000000000 +0100
dcaee6
***************
dcaee6
*** 1374,1380 ****
dcaee6
  set_last_cursor(win)
dcaee6
      win_T	*win;
dcaee6
  {
dcaee6
!     win->w_buffer->b_last_cursor = win->w_cursor;
dcaee6
  }
dcaee6
  
dcaee6
  #if defined(EXITFREE) || defined(PROTO)
dcaee6
--- 1374,1381 ----
dcaee6
  set_last_cursor(win)
dcaee6
      win_T	*win;
dcaee6
  {
dcaee6
!     if (win->w_buffer != NULL)
dcaee6
! 	win->w_buffer->b_last_cursor = win->w_cursor;
dcaee6
  }
dcaee6
  
dcaee6
  #if defined(EXITFREE) || defined(PROTO)
dcaee6
*** ../vim-7.4.058/src/version.c	2013-11-02 23:59:30.000000000 +0100
dcaee6
--- src/version.c	2013-11-03 00:17:55.000000000 +0100
dcaee6
***************
dcaee6
*** 740,741 ****
dcaee6
--- 740,743 ----
dcaee6
  {   /* Add new patch number below this line */
dcaee6
+ /**/
dcaee6
+     59,
dcaee6
  /**/
dcaee6
dcaee6
-- 
dcaee6
How do you know when you have run out of invisible ink?
dcaee6
dcaee6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
dcaee6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
dcaee6
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
dcaee6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///