updated for version 7.1-173 v7.1.173
authorBram Moolenaar <Bram@vim.org>
Sun, 9 Dec 2007 18:26:22 +0000 (18:26 +0000)
committerBram Moolenaar <Bram@vim.org>
Sun, 9 Dec 2007 18:26:22 +0000 (18:26 +0000)
src/regexp.c
src/version.c

index 6717d2c7363d8c2a24f16bb04ffa715c8322a2a5..d61473c9f25b0b7a8fa6da57fa13081fc0c89631 100644 (file)
@@ -3810,11 +3810,11 @@ regmatch(scan)
            break;
 
          case RE_BOF:
-           /* Passing -1 to the getline() function provided for the search
-            * should always return NULL if the current line is the first
-            * line of the file. */
+           /* We're not at the beginning of the file when below the first
+            * line where we started, not at the start of the line or we
+            * didn't start at the first line of the buffer. */
            if (reglnum != 0 || reginput != regline
-                       || (REG_MULTI && reg_getline((linenr_T)-1) != NULL))
+                                         || (REG_MULTI && reg_firstlnum > 1))
                status = RA_NOMATCH;
            break;
 
index 1bf84d35ba5ef6936ce566d3db72231430b7f0bc..3310ef21e952ffd9613a28c0cfe92bc79ef7a13f 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    173,
 /**/
     172,
 /**/