diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-07-31 04:10:25 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-07-31 04:10:25 +0000 |
commit | c424850e06fedfd0827e5a1e8de001f20bfc25cc (patch) | |
tree | 15a7249f6e797e75f74d5e77a0b3922805ae36d0 | |
parent | b44517d5f8a199da4acdd61c7d82c752fd81ac02 (diff) |
fix vi on console by not moving cursor when printing nulls
-rw-r--r-- | sys/arch/alpha/wscons/wscons_emul.c | 4 | ||||
-rw-r--r-- | sys/dev/wscons/wscons_emul.c | 4 |
2 files changed, 6 insertions, 2 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++; diff --git a/sys/dev/wscons/wscons_emul.c b/sys/dev/wscons/wscons_emul.c index e58942ca355..a7ffae29c02 100644 --- a/sys/dev/wscons/wscons_emul.c +++ b/sys/dev/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++; |