From fc6b037f3995f3991fb36920f715f7d976966e7e Mon Sep 17 00:00:00 2001 From: Angel Jumbo Date: Thu, 10 Nov 2022 21:04:58 -0500 Subject: [PATCH] Bug fix -k color with no rim --- lavat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lavat.c b/lavat.c index 13ecf4a..07f8a39 100644 --- a/lavat.c +++ b/lavat.c @@ -16,7 +16,7 @@ typedef struct { static char *custom = NULL; static short color = TB_DEFAULT; -static short color2 = TB_BOLD; +static short color2 = TB_DEFAULT; static int nballs = 10; static short speedMult = 1; static short rim = 0; @@ -57,8 +57,8 @@ int main(int argc, char *argv[]) { char *custom2 = custom; - if (color2 == TB_BOLD) - color2 = color | color2; + if (color2 == TB_DEFAULT || !rim) + color2 = color | TB_BOLD; if (custom && strlen(custom) > 1 && rim) { custom2 = custom + 1;