From 24bc858b68ff3c318fee4cb33d97d0e516bfa8c5 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 2 Apr 2011 18:11:25 +0100 Subject: [PATCH] screen_find.c: fix backspace bug Use ncurses macros instead of magic numbers. --- src/screen_find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2