preserve highlight in the presence of redirects

This was only needed for the new cal format. Old format in printmonthb()
is already fine.
This commit is contained in:
Kartik K. Agaram 2022-02-17 14:48:44 -08:00
parent 6398f526d8
commit fb046c5d9a
1 changed files with 1 additions and 1 deletions

2
ncal.c
View File

@ -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);