From a5551024095ed172003bffc40a9568d1440b9503 Mon Sep 17 00:00:00 2001 From: "Jeremie Francois (on omega)" Date: Fri, 19 Mar 2021 10:22:16 +0100 Subject: [PATCH] Fix: "x" command shouldn't toggle date box with -D --- ttyclock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ttyclock.c b/ttyclock.c index ac92942..bc388fb 100644 --- a/ttyclock.c +++ b/ttyclock.c @@ -399,7 +399,8 @@ set_box(bool b) wbkgdset(ttyclock.framewin, COLOR_PAIR(0)); wbkgdset(ttyclock.datewin, COLOR_PAIR(0)); box(ttyclock.framewin, 0, 0); - box(ttyclock.datewin, 0, 0); + if (ttyclock.option.date) + box(ttyclock.datewin, 0, 0); } else { wborder(ttyclock.framewin, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '); @@ -676,4 +677,5 @@ main(int argc, char **argv) return 0; } + // vim: expandtab tabstop=5 softtabstop=5 shiftwidth=5