summaryrefslogtreecommitdiff
path: root/usr.bin/vi/ex/ex_txt.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-07-27 22:28:26 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-07-27 22:28:26 +0000
commit4b78d53e662bebcd37bfe64c34ee64da5e5ca0f1 (patch)
tree4072a414806b098bf4aca70cea37e6063a2d3f3e /usr.bin/vi/ex/ex_txt.c
parentd3cd71e47815755c43ebd011e6c53f532e581239 (diff)
Update to 1.79 and install as vi/ex/view.
Diffstat (limited to 'usr.bin/vi/ex/ex_txt.c')
-rw-r--r--usr.bin/vi/ex/ex_txt.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/vi/ex/ex_txt.c b/usr.bin/vi/ex/ex_txt.c
index 3838afd52bf..2f62ff51a47 100644
--- a/usr.bin/vi/ex/ex_txt.c
+++ b/usr.bin/vi/ex/ex_txt.c
@@ -10,7 +10,7 @@
#include "config.h"
#ifndef lint
-static const char sccsid[] = "@(#)ex_txt.c 10.16 (Berkeley) 9/24/96";
+static const char sccsid[] = "@(#)ex_txt.c 10.17 (Berkeley) 10/10/96";
#endif /* not lint */
#include <sys/types.h>
@@ -164,14 +164,13 @@ newtp: if ((tp = text_init(sp, NULL, 0, 32)) == NULL)
/* FALLTHROUGH */
case K_NL:
/*
- * '\' can escape <carriage-return>/<newline>. Toss
- * the backslash.
+ * '\' can escape <carriage-return>/<newline>. We
+ * don't discard the backslash because we need it
+ * to get the <newline> through the ex parser.
*/
if (LF_ISSET(TXT_BACKSLASH) &&
- tp->len != 0 && tp->lb[tp->len - 1] == '\\') {
- --tp->len;
+ tp->len != 0 && tp->lb[tp->len - 1] == '\\')
goto ins_ch;
- }
/*
* CR returns from the ex command line.