From dffc8458038c59c3269541fa131c7ecd49340769 Mon Sep 17 00:00:00 2001 From: mickey Date: Mon, 6 May 1996 11:19:54 +0000 Subject: [PATCH] do the ^W right. --- sys/ddb/db_input.c | 4 ++-- 1 file 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'): -- 2.20.1