From 71c34ac7f9670a9c4cc2e9e38e3b231e6b855d4e Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Thu, 30 Jan 2020 09:00:39 +0100 Subject: 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 Signed-off-by: Lukas Fleischer --- src/recur.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/recur.c') diff --git a/src/recur.c b/src/recur.c index fcad296..e0a6b05 100644 --- a/src/recur.c +++ b/src/recur.c @@ -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; -- cgit v1.2.3-54-g00ecf