Skip to content

Commit e12c6e6

Browse files
committed
Colors: fix bug with --pipe enabled
1 parent 7ba1e3d commit e12c6e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/colors/colors.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void ffPrintColors(FFColorsOptions* options)
4646
if (options->paddingLeft > 0)
4747
ffPrintCharTimes(' ', options->paddingLeft);
4848

49-
if (!instance.config.display.pipe)
49+
if (!instance.config.display.pipe || options->symbol == FF_COLORS_SYMBOL_BACKGROUND)
5050
ffStrbufAppendS(&result, FASTFETCH_TEXT_MODIFIER_RESET);
5151
ffStrbufPutTo(&result, stdout);
5252
ffStrbufClear(&result);
@@ -102,7 +102,7 @@ void ffPrintColors(FFColorsOptions* options)
102102

103103
if(options->paddingLeft > 0)
104104
ffPrintCharTimes(' ', options->paddingLeft);
105-
if(!instance.config.display.pipe)
105+
if(!instance.config.display.pipe || options->symbol == FF_COLORS_SYMBOL_BACKGROUND)
106106
ffStrbufAppendS(&result, FASTFETCH_TEXT_MODIFIER_RESET);
107107
ffStrbufPutTo(&result, stdout);
108108
}

0 commit comments

Comments
 (0)