Module Name: src
Committed By: jld
Date: Sat Apr 4 01:13:43 UTC 2009
Modified Files:
src/dist/nvi/vi: v_at.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/dist/nvi/vi/v_at.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/dist/nvi/vi/v_at.c
diff -u src/dist/nvi/vi/v_at.c:1.2 src/dist/nvi/vi/v_at.c:1.3
--- src/dist/nvi/vi/v_at.c:1.2 Fri Dec 5 22:51:43 2008
+++ src/dist/nvi/vi/v_at.c Sat Apr 4 01:13:42 2009
@@ -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 @@
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);
}