summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-08-24 20:13:22 +0000
committerFrederic Culot <calcurse@culot.org>2006-08-24 20:13:22 +0000
commit11c684f369b3dcc51881105bdfd6fcf6076e5721 (patch)
treedfdd4db5666d63400e3a82cc907f1e7c0bb6871f /src
parentb9c26dc9fd3a7ab6dbcef3c483ae778ac1bde0a4 (diff)
downloadcalcurse-11c684f369b3dcc51881105bdfd6fcf6076e5721.tar.gz
calcurse-11c684f369b3dcc51881105bdfd6fcf6076e5721.zip
repeat command disabled for todo panel
Diffstat (limited to 'src')
-rwxr-xr-xsrc/calcurse.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index aaddc5d..1133bcd 100755
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -1,4 +1,4 @@
-/* $calcurse: calcurse.c,v 1.6 2006/08/22 21:06:24 culot Exp $ */
+/* $calcurse: calcurse.c,v 1.7 2006/08/24 20:13:22 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -303,8 +303,9 @@ int main(int argc, char **argv)
if (which_pan == APPOINTMENT) {
add_item();
do_storage = true;
+ } else if (which_pan == TODO) {
+ add_todo();
}
- if (which_pan == TODO) add_todo();
break;
case 'D':
@@ -315,7 +316,9 @@ int main(int argc, char **argv)
case 'R':
case 'r':
- recur_repeat_item(sel_year, sel_month, sel_day, hilt_app, colr);
+ if (which_pan == APPOINTMENT)
+ recur_repeat_item(sel_year, sel_month,
+ sel_day, hilt_app, colr);
break;
case '?': /* Online help system */
@@ -962,7 +965,7 @@ void add_item(void)
12, 0),
Id);
}
- hilt_app++;
+ if (hilt_app == 0) hilt_app++;
}
erase_window_part(swin, 0, 0, nc_bar, nl_bar);
}