comparison src/search.c @ 945:0b211ebefd4e v7.0.071

updated for version 7.0-071
author vimboss
date Tue, 29 Aug 2006 15:58:12 +0000
parents b2dcb8457067
children 7d29124f77f5
comparison
equal deleted inserted replaced
944:b2dcb8457067 945:0b211ebefd4e
1257 retval = 1; /* pattern found */ 1257 retval = 1; /* pattern found */
1258 1258
1259 /* 1259 /*
1260 * Add character and/or line offset 1260 * Add character and/or line offset
1261 */ 1261 */
1262 if (!(options & SEARCH_NOOF) || *pat == ';') 1262 if (!(options & SEARCH_NOOF) || (pat != NULL && *pat == ';'))
1263 { 1263 {
1264 if (spats[0].off.line) /* Add the offset to the line number. */ 1264 if (spats[0].off.line) /* Add the offset to the line number. */
1265 { 1265 {
1266 c = pos.lnum + spats[0].off.off; 1266 c = pos.lnum + spats[0].off.off;
1267 if (c < 1) 1267 if (c < 1)