From: matt Date: Sat, 2 Apr 2011 17:11:25 +0000 (+0100) Subject: screen_find.c: fix backspace bug X-Git-Tag: release-0.19~19 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=24bc858b68ff3c318fee4cb33d97d0e516bfa8c5;p=ncmpc.git screen_find.c: fix backspace bug Use ncurses macros instead of magic numbers. --- diff --git a/src/screen_find.c b/src/screen_find.c index c17db4d..890f58c 100644 --- a/src/screen_find.c +++ b/src/screen_find.c @@ -114,7 +114,7 @@ screen_jump(struct list_window *lw, while(1) { key = screen_getch(screen.findbuf); /* if backspace or delete was pressed, process instead of ending loop */ - if (key == 127 || key == 330) { + if (key == KEY_BACKSPACE || key == KEY_DC) { int i; if (search_str <= g_utf8_find_prev_char(screen.findbuf, iter)) iter = g_utf8_find_prev_char(screen.findbuf, iter);