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