Make vi's '@' command work again; a precedence warning fix in r1.2 added

parens in the wrong place such that '@' did nothing.  Needs pullup to -5.

Reported by Ed Ravin; fixes PR 41134.
This commit is contained in:
jld 2009-04-04 01:13:42 +00:00
parent 58e0c54cf3
commit 09d4e48298

8
dist/nvi/vi/v_at.c vendored
View File

@ -1,4 +1,4 @@
/* $NetBSD: v_at.c,v 1.2 2008/12/05 22:51:43 christos Exp $ */
/* $NetBSD: v_at.c,v 1.3 2009/04/04 01:13:42 jld Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@ -94,9 +94,9 @@ v_at(SCR *sp, VICMD *vp)
for (tp = cbp->textq.cqh_last;
tp != (void *)&cbp->textq; tp = tp->q.cqe_prev) {
static CHAR_T nl[] = { '\n', 0 };
if ((F_ISSET(cbp, CB_LMODE) ||
((tp->q.cqe_next != (void *)&cbp->textq) &&
v_event_push(sp, NULL, nl, 1, 0))) ||
if (((F_ISSET(cbp, CB_LMODE) ||
tp->q.cqe_next != (void *)&cbp->textq) &&
v_event_push(sp, NULL, nl, 1, 0)) ||
v_event_push(sp, NULL, tp->lb, tp->len, 0))
return (1);
}