From b146b15156e69aef90ba4fa0f4d30cbcfb45a5eb Mon Sep 17 00:00:00 2001 From: Vlad Glagolev Date: Tue, 31 Oct 2017 16:03:21 -0400 Subject: [PATCH] Do not display date box when '-D' flag is provided --- ttyclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ttyclock.c b/ttyclock.c index a9ef580..936ea4e 100644 --- a/ttyclock.c +++ b/ttyclock.c @@ -118,7 +118,7 @@ init(void) ttyclock->geo.x + ttyclock->geo.h - 1, ttyclock->geo.y + (ttyclock->geo.w / 2) - (strlen(ttyclock->date.datestr) / 2) - 1); - if(ttyclock->option.box) { + if(ttyclock->option.box && ttyclock->option.date) { box(ttyclock->datewin, 0, 0); } clearok(ttyclock->datewin, True);