From 7ff22e9b3f906b6f775e199d6cde73d8ee18d1d5 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Mon, 8 Dec 2008 19:17:06 +0000 Subject: color configuration menu adapted to handle user-defined key bindings --- src/utils.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index 31a4bf4..b04f023 100755 --- a/src/utils.c +++ b/src/utils.c @@ -1,4 +1,4 @@ -/* $calcurse: utils.c,v 1.55 2008/12/07 09:20:38 culot Exp $ */ +/* $calcurse: utils.c,v 1.56 2008/12/08 19:17:07 culot Exp $ */ /* * Calcurse - text-based organizer @@ -226,9 +226,7 @@ showcursor (WINDOW *win, int y, int pos, char *str, int l, int offset) nc = str + pos; wmove (win, y, pos - offset); -#define SPACE 32 (pos >= l) ? waddch (win, SPACE | A_REVERSE) : waddch (win, *nc | A_REVERSE); -#undef SPACE } /* Print the string at the desired position. */ @@ -368,7 +366,7 @@ getstring (WINDOW *win, char *str, int l, int x, int y) newpos++; break; - case KEY_GENERIC_ESCAPE: /* cancel editing */ + case KEY_GENERIC_CANCEL: /* cancel editing */ return (GETSTRING_ESC); break; -- cgit v1.2.3-54-g00ecf