summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1996-05-06 11:19:54 +0000
committermickey <mickey@openbsd.org>1996-05-06 11:19:54 +0000
commitdffc8458038c59c3269541fa131c7ecd49340769 (patch)
treeee5e66cbb06cd1386a44eec1f16ebd9c8fd05d71
parentReturn int from main(), so gcc -Werror won't complain. Rhyme not intended. (diff)
downloadwireguard-openbsd-dffc8458038c59c3269541fa131c7ecd49340769.tar.xz
wireguard-openbsd-dffc8458038c59c3269541fa131c7ecd49340769.zip
do the ^W right.
-rw-r--r--sys/ddb/db_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c
index 56d7a4f3f69..55126180222 100644
--- a/sys/ddb/db_input.c
+++ b/sys/ddb/db_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_input.c,v 1.5 1996/05/05 12:23:16 mickey Exp $ */
+/* $OpenBSD: db_input.c,v 1.6 1996/05/06 11:19:54 mickey Exp $ */
/* $NetBSD: db_input.c,v 1.7 1996/02/05 01:57:02 christos Exp $ */
/*
@@ -176,7 +176,7 @@ db_inputchar(c)
break;
case CTRL('w'):
/* erase word back */
- while (db_lc > db_lbuf_start && *db_lc != BLANK)
+ while (db_lc > db_lbuf_start && db_lc[-1] != BLANK)
db_delete(1, DEL_BWD);
break;
case CTRL('h'):