From: Steven Schubiger Date: Mon, 13 May 2013 13:18:17 +0000 (+0200) Subject: Add note in line printing function X-Git-Tag: v0.51~13 X-Git-Url: http://git.refcnt.org/?a=commitdiff_plain;h=3d5b13e82c314f1c70e1bc44cfe5291017b4bd79;p=colorize.git Add note in line printing function --- diff --git a/colorize.c b/colorize.c index 078554a..8514d4e 100644 --- a/colorize.c +++ b/colorize.c @@ -785,6 +785,7 @@ print_line (const struct color **colors, bool bold, const char *const line, unsi print_clean (line); else { + /* Foreground color code is guaranteed to be set when background color code is present. */ if (colors[BACKGROUND] && colors[BACKGROUND]->code) printf ("\033[%s", colors[BACKGROUND]->code); if (colors[FOREGROUND]->code)