changed Backspace/C-w behavior (now it only removes a single character)

This commit is contained in:
Anselm R. Garbe
2007-02-26 14:07:19 +01:00
parent 8a066fabd9
commit 03c2b05bb2
2 changed files with 3 additions and 7 deletions

8
main.c
View File

@ -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;