summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b03ae94)
raw | patch | inline | side by side (parent: b03ae94)
author | matt <matt.r.portas@gmail.com> | |
Sat, 2 Apr 2011 17:11:25 +0000 (18:11 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 23 Jun 2011 06:37:16 +0000 (08:37 +0200) |
Use ncurses macros instead of magic numbers.
src/screen_find.c | patch | blob | history |
diff --git a/src/screen_find.c b/src/screen_find.c
index c17db4d3354652743af1f6f13234af1a7c62d707..890f58cf14579dcf0436ec8012fa7f41437488e0 100644 (file)
--- a/src/screen_find.c
+++ b/src/screen_find.c
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);