summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-07-31 04:10:25 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-07-31 04:10:25 +0000
commitc424850e06fedfd0827e5a1e8de001f20bfc25cc (patch)
tree15a7249f6e797e75f74d5e77a0b3922805ae36d0 /sys/arch/alpha
parentb44517d5f8a199da4acdd61c7d82c752fd81ac02 (diff)
fix vi on console by not moving cursor when printing nulls
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/wscons/wscons_emul.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/alpha/wscons/wscons_emul.c b/sys/arch/alpha/wscons/wscons_emul.c
index e58942ca355..a7ffae29c02 100644
--- a/sys/arch/alpha/wscons/wscons_emul.c
+++ b/sys/arch/alpha/wscons/wscons_emul.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wscons_emul.c,v 1.8 1997/07/28 13:54:22 kstailey Exp $ */
+/* $OpenBSD: wscons_emul.c,v 1.9 1997/07/31 04:10:24 kstailey Exp $ */
/* $NetBSD: wscons_emul.c,v 1.7 1996/11/19 05:23:13 cgd Exp $ */
/*
@@ -162,6 +162,8 @@ wscons_emul_input_normal(we, c)
/* else fall through; we're printing one out */
default:
+ if (c == '\0')
+ break;
(*we->ac_ef->wef_putstr)(we->ac_efa,
we->ac_crow, we->ac_ccol, &c, 1);
we->ac_ccol++;