summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_cons.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/kern_cons.c b/sys/kern/kern_cons.c
index d17846a..72b384f 100644
--- a/sys/kern/kern_cons.c
+++ b/sys/kern/kern_cons.c
@@ -432,10 +432,8 @@ cngets(char *cp, size_t size, int visible)
case '\b':
case '\177':
if (lp > cp) {
- if (visible) {
- cnputc(c);
- cnputs(" \b");
- }
+ if (visible)
+ cnputs("\b \b");
lp--;
}
continue;
OpenPOWER on IntegriCloud