From 9160f30161fab3831ad9b769efe2bf720f2b74c2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 29 Aug 2006 15:58:12 +0000 Subject: updated for version 7.0-071 --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/search.c') diff --git a/src/search.c b/src/search.c index 97580c01f..1c38060ee 100644 --- a/src/search.c +++ b/src/search.c @@ -1259,7 +1259,7 @@ do_search(oap, dirc, pat, count, options) /* * Add character and/or line offset */ - if (!(options & SEARCH_NOOF) || *pat == ';') + if (!(options & SEARCH_NOOF) || (pat != NULL && *pat == ';')) { if (spats[0].off.line) /* Add the offset to the line number. */ { -- cgit v1.2.1