artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d5a912
)
do the ^W right.
author
mickey
<mickey@openbsd.org>
Mon, 6 May 1996 11:19:54 +0000
(11:19 +0000)
committer
mickey
<mickey@openbsd.org>
Mon, 6 May 1996 11:19:54 +0000
(11:19 +0000)
sys/ddb/db_input.c
patch
|
blob
|
history
diff --git
a/sys/ddb/db_input.c
b/sys/ddb/db_input.c
index
56d7a4f
..
5512618
100644
(file)
--- 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'):