updated for version 7.1-024
diff --git a/src/search.c b/src/search.c
index 9f6c997..3836db7 100644
--- a/src/search.c
+++ b/src/search.c
@@ -2124,6 +2124,9 @@
 			else if (!backwards)
 			    inquote = TRUE;
 		    }
+
+		    /* ml_get() only keeps one line, need to get linep again */
+		    linep = ml_get(pos.lnum);
 		}
 	    }
 	}
diff --git a/src/version.c b/src/version.c
index 0e02631..4a3f666 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    24,
+/**/
     23,
 /**/
     22,