From fb046c5d9a14f9b45df65e5283f1c6e49a040107 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 17 Feb 2022 14:48:44 -0800 Subject: [PATCH] preserve highlight in the presence of redirects This was only needed for the new cal format. Old format in printmonthb() is already fine. --- ncal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncal.c b/ncal.c index 6bf619a..8bd7dc2 100644 --- a/ncal.c +++ b/ncal.c @@ -917,7 +917,7 @@ printmonthr(int line, int col, int y, int m, int jd_flag, int highlightdate) dt.d = j - jan1 + 1; else sdater(j, &dt); - if (j == highlightdate && isatty(STDOUT_FILENO)) { + if (j == highlightdate) { mvaddstr(line+i, col+k-1, " "); attron(A_REVERSE); printw("%-.*s", dw-1, ds + dt.d * dw + 1);