Merge pull request #47 from vaygr/date-box-fix

Do not display date box when '-D' flag is provided
reverse-branch
anarcat 8 years ago committed by GitHub
commit 12aa31d361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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);

Loading…
Cancel
Save