Refactor the repeat command

Code duplication has been eliminated by calling update_rept() from the
repeat command ui_day_item_repeat().

The repeat command asks for simple or advanced repetition.

Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lars Henriksen
2020-01-30 09:00:39 +01:00
committed by Lukas Fleischer
parent dc161b3b67
commit 71c34ac7f9
2 changed files with 87 additions and 166 deletions

View File

@@ -392,8 +392,7 @@ char recur_def2char(enum recur_type define)
recur_char = 'Y';
break;
default:
EXIT(_("unknown repetition type"));
return 0;
recur_char = 0;
}
return recur_char;