aboutsummaryrefslogtreecommitdiff
path: root/ttt.c
diff options
context:
space:
mode:
Diffstat (limited to 'ttt.c')
-rw-r--r--ttt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ttt.c b/ttt.c
index 9c4e210..8b8a1ca 100644
--- a/ttt.c
+++ b/ttt.c
@@ -1319,7 +1319,7 @@ int main(int argc, char *argv[]) {
"\n"
"In app commands\n"
" a, A Archive selected task (except if active).\n"
- " u, U Unarchive selected task.\n"
+ " r, R Restore selected task from archive.\n"
" t, T Select currently active task (if any).\n"
" d, D Duplicate selected task.\n"
" n, N Create new task.\n"
@@ -1768,17 +1768,17 @@ int main(int argc, char *argv[]) {
break;
}
- case 'u':
- case 'U': {
+ case 'r':
+ case 'R': {
if (db != &archive || selected_task == NULL) {
break;
}
if (is_database_full(&database)) {
- read_enter_confirmation(selected_task_row, error_style, " Unable to unarchive entry: database is full. ");
+ read_enter_confirmation(selected_task_row, error_style, " Unable to restore entry: database is full. ");
break;
}
if (duplicate_task(&database, selected_task) == false) {
- print_error("Failed to unarchive entry.");
+ print_error("Failed to restore entry.");
break;
}
delete_task(&archive, selected_task);