Module Name: src
Committed By: snj
Date: Sat Apr 4 23:47:47 UTC 2009
Modified Files:
src/dist/nvi/vi [netbsd-5]: v_at.c
Log Message:
Pull up following revision(s) (requested by jld in ticket #668):
dist/nvi/vi/v_at.c: revision 1.3
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.1.1.2.6.1 -r1.1.1.2.6.2 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.1.1.2.6.1 src/dist/nvi/vi/v_at.c:1.1.1.2.6.2
--- src/dist/nvi/vi/v_at.c:1.1.1.2.6.1 Tue Jan 20 02:41:13 2009
+++ src/dist/nvi/vi/v_at.c Sat Apr 4 23:47:47 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: v_at.c,v 1.1.1.2.6.1 2009/01/20 02:41:13 snj Exp $ */
+/* $NetBSD: v_at.c,v 1.1.1.2.6.2 2009/04/04 23:47:47 snj 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);
}