39cfb84
To: vim-dev@vim.org
39cfb84
Subject: patch 7.1.024
39cfb84
Fcc: outbox
39cfb84
From: Bram Moolenaar <Bram@moolenaar.net>
39cfb84
Mime-Version: 1.0
39cfb84
Content-Type: text/plain; charset=ISO-8859-1
39cfb84
Content-Transfer-Encoding: 8bit
39cfb84
------------
39cfb84
39cfb84
Patch 7.1.024
39cfb84
Problem:    Using a pointer that has become invalid. (Chris Monson)
39cfb84
Solution:   Obtain the line pointer again after we looked at another line.
39cfb84
Files:	    src/search.c
39cfb84
39cfb84
39cfb84
*** ../vim-7.1.023/src/search.c	Tue Jul 10 12:36:51 2007
39cfb84
--- src/search.c	Thu Jul  5 21:18:55 2007
39cfb84
***************
39cfb84
*** 2124,2129 ****
39cfb84
--- 2128,2136 ----
39cfb84
  			else if (!backwards)
39cfb84
  			    inquote = TRUE;
39cfb84
  		    }
39cfb84
+ 
39cfb84
+ 		    /* ml_get() only keeps one line, need to get linep again */
39cfb84
+ 		    linep = ml_get(pos.lnum);
39cfb84
  		}
39cfb84
  	    }
39cfb84
  	}
39cfb84
*** ../vim-7.1.023/src/version.c	Tue Jul 10 12:36:51 2007
39cfb84
--- src/version.c	Tue Jul 10 13:06:02 2007
39cfb84
***************
39cfb84
*** 668,669 ****
39cfb84
--- 668,671 ----
39cfb84
  {   /* Add new patch number below this line */
39cfb84
+ /**/
39cfb84
+     24,
39cfb84
  /**/
39cfb84
39cfb84
-- 
39cfb84
Q: Why does /dev/null accept only integers?
39cfb84
A: You can't sink a float.
39cfb84
39cfb84
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
39cfb84
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
39cfb84
\\\        download, build and distribute -- http://www.A-A-P.org        ///
39cfb84
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///