commit | 9160f30161fab3831ad9b769efe2bf720f2b74c2 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Aug 29 15:58:12 2006 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Aug 29 15:58:12 2006 +0000 |
tree | 3d20cf457a6d14931039fb3c383ec4e817700d02 | |
parent | 89d4032cae3f1e525978bea5015434af677faa44 [diff] [blame] |
updated for version 7.0-071
diff --git a/src/search.c b/src/search.c index 97580c0..1c38060 100644 --- a/src/search.c +++ b/src/search.c
@@ -1259,7 +1259,7 @@ /* * 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. */ {