View | Details | Raw Unified | Return to bug 192108 | Differences between
and this patch

Collapse All | Expand All

(-)process.c (-4 / +4 lines)
Lines 272-278 Link Here
272
 */
272
 */
273
#define	MATCH(a)							\
273
#define	MATCH(a)							\
274
	((a)->type == AT_RE ? regexec_e((a)->u.r, ps, 0, 1, psl) :	\
274
	((a)->type == AT_RE ? regexec_e((a)->u.r, ps, 0, 1, psl) :	\
275
	    (a)->type == AT_LINE ? linenum == (a)->u.l : lastline())
275
	    (a)->type == AT_LINE ? linenum == (a)->u.l :		\
276
	    (a)->type == AT_RELLINE ? linenum - cp->startline == (a)->u.l : \
277
	    lastline())
276
278
277
/*
279
/*
278
 * Return TRUE if the command applies to the current line.  Sets the start
280
 * Return TRUE if the command applies to the current line.  Sets the start
Lines 292-300 Link Here
292
				cp->startline = 0;
294
				cp->startline = 0;
293
				lastaddr = 1;
295
				lastaddr = 1;
294
				r = 1;
296
				r = 1;
295
			} else if (linenum - cp->startline <= cp->a2->u.l)
297
			} else if ((cp->a2->type == AT_LINE &&
296
				r = 1;
297
			else if ((cp->a2->type == AT_LINE &&
298
				   linenum > cp->a2->u.l) ||
298
				   linenum > cp->a2->u.l) ||
299
				   (cp->a2->type == AT_RELLINE &&
299
				   (cp->a2->type == AT_RELLINE &&
300
				   linenum - cp->startline > cp->a2->u.l)) {
300
				   linenum - cp->startline > cp->a2->u.l)) {

Return to bug 192108