From 03c2b05bb2265e0ef7ba33b7f6df36bd6e0ce54d Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Mon, 26 Feb 2007 14:07:19 +0100 Subject: changed Backspace/C-w behavior (now it only removes a single character) --- main.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 210792a..b733feb 100644 --- a/main.c +++ b/main.c @@ -289,12 +289,8 @@ kpress(XKeyEvent * e) { } break; case XK_BackSpace: - if((i = len)) { - prev_nitem = nitem; - do { - text[--i] = 0; - match(text); - } while(i && nitem && prev_nitem == nitem); + if(len) { + text[--len] = 0; match(text); } break; -- cgit v1.2.3-13-gbd6f