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:
committed by
Lukas Fleischer
parent
dc161b3b67
commit
71c34ac7f9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user