|
Karsten Hopp |
f807b8 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
f807b8 |
Subject: Patch 7.0.071
|
|
Karsten Hopp |
f807b8 |
Fcc: outbox
|
|
Karsten Hopp |
f807b8 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
f807b8 |
Mime-Version: 1.0
|
|
Karsten Hopp |
f807b8 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
f807b8 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
f807b8 |
------------
|
|
Karsten Hopp |
f807b8 |
|
|
Karsten Hopp |
f807b8 |
Patch 7.0.071
|
|
Karsten Hopp |
f807b8 |
Problem: Using an empty search pattern may cause a crash.
|
|
Karsten Hopp |
f807b8 |
Solution: Avoid using a NULL pointer.
|
|
Karsten Hopp |
f807b8 |
Files: src/search.c
|
|
Karsten Hopp |
f807b8 |
|
|
Karsten Hopp |
f807b8 |
|
|
Karsten Hopp |
f807b8 |
*** ../vim-7.0.070/src/search.c Tue Aug 29 17:28:56 2006
|
|
Karsten Hopp |
f807b8 |
--- src/search.c Tue Aug 29 14:56:15 2006
|
|
Karsten Hopp |
f807b8 |
***************
|
|
Karsten Hopp |
f807b8 |
*** 1259,1265 ****
|
|
Karsten Hopp |
f807b8 |
/*
|
|
Karsten Hopp |
f807b8 |
* Add character and/or line offset
|
|
Karsten Hopp |
f807b8 |
*/
|
|
Karsten Hopp |
f807b8 |
! if (!(options & SEARCH_NOOF) || *pat == ';')
|
|
Karsten Hopp |
f807b8 |
{
|
|
Karsten Hopp |
f807b8 |
if (spats[0].off.line) /* Add the offset to the line number. */
|
|
Karsten Hopp |
f807b8 |
{
|
|
Karsten Hopp |
f807b8 |
--- 1259,1265 ----
|
|
Karsten Hopp |
f807b8 |
/*
|
|
Karsten Hopp |
f807b8 |
* Add character and/or line offset
|
|
Karsten Hopp |
f807b8 |
*/
|
|
Karsten Hopp |
f807b8 |
! if (!(options & SEARCH_NOOF) || (pat != NULL && *pat == ';'))
|
|
Karsten Hopp |
f807b8 |
{
|
|
Karsten Hopp |
f807b8 |
if (spats[0].off.line) /* Add the offset to the line number. */
|
|
Karsten Hopp |
f807b8 |
{
|
|
Karsten Hopp |
f807b8 |
*** ../vim-7.0.070/src/version.c Tue Aug 29 17:28:56 2006
|
|
Karsten Hopp |
f807b8 |
--- src/version.c Tue Aug 29 17:59:24 2006
|
|
Karsten Hopp |
f807b8 |
***************
|
|
Karsten Hopp |
f807b8 |
*** 668,669 ****
|
|
Karsten Hopp |
f807b8 |
--- 668,671 ----
|
|
Karsten Hopp |
f807b8 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
f807b8 |
+ /**/
|
|
Karsten Hopp |
f807b8 |
+ 71,
|
|
Karsten Hopp |
f807b8 |
/**/
|
|
Karsten Hopp |
f807b8 |
|
|
Karsten Hopp |
f807b8 |
--
|
|
Karsten Hopp |
f807b8 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
f807b8 |
268. You get up in the morning and go online before getting your coffee.
|
|
Karsten Hopp |
f807b8 |
|
|
Karsten Hopp |
f807b8 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
f807b8 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
f807b8 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
f807b8 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|