summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-06 11:19:55 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-05-06 11:19:55 +0000
commitd352d4560cb2b50fecc84e1dff915cbb19b81d18 (patch)
tree861a48416c8556673d5247167e13e93379c0e192
parent8cc59de2c1732cb9e78d3faf06bd1a823067740a (diff)
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'):