summaryrefslogtreecommitdiff
path: root/src/todo.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2008-11-09 20:10:18 +0000
committerFrederic Culot <calcurse@culot.org>2008-11-09 20:10:18 +0000
commite8f12c65ca0245079ae015a90e7a14109759cdda (patch)
treedc16f443c7209b8f93f1e21146f7c7d87d2cf56a /src/todo.c
parentf845721828a0000f1c7e30f35360417771788e0a (diff)
downloadcalcurse-e8f12c65ca0245079ae015a90e7a14109759cdda.zip
Loading of user-configurable keys implemented
Diffstat (limited to 'src/todo.c')
-rwxr-xr-xsrc/todo.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/todo.c b/src/todo.c
index 9b3d786..54fd059 100755
--- a/src/todo.c
+++ b/src/todo.c
@@ -1,4 +1,4 @@
-/* $calcurse: todo.c,v 1.22 2008/04/19 21:05:15 culot Exp $ */
+/* $calcurse: todo.c,v 1.23 2008/11/09 20:10:18 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -30,6 +30,7 @@
#include "utils.h"
#include "custom.h"
+#include "keys.h"
#include "i18n.h"
#include "todo.h"
@@ -347,11 +348,11 @@ todo_chg_priority (int action)
strncpy (backup_note, backup->note, NOTESIZ + 1);
else
backup_note[0] = '\0';
- if (action == '+')
+ if (action == KEY_TODO_RAISE_PRIORITY)
{
(backup_id > 1) ? backup_id-- : do_chg--;
}
- else if (action == '-')
+ else if (action == KEY_TODO_LOWER_PRIORITY)
{
(backup_id < 9) ? backup_id++ : do_chg--;
}