From bd0b108c0493053a29138595440a33bd1edd577c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 16 Jul 2024 14:32:51 +0800 Subject: [PATCH] Colors: don't disable color if `--color-symbol background` is set in `--pipe` mode --- src/modules/colors/colors.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modules/colors/colors.c b/src/modules/colors/colors.c index cda51d354..8d28405f7 100644 --- a/src/modules/colors/colors.c +++ b/src/modules/colors/colors.c @@ -34,8 +34,7 @@ void ffPrintColors(FFColorsOptions* options) } else { - if (!instance.config.display.pipe) - ffStrbufAppendF(&result, "\e[4%dm", i); + ffStrbufAppendF(&result, "\e[4%dm", i); ffStrbufAppendNC(&result, options->block.width, ' '); } } @@ -65,8 +64,7 @@ void ffPrintColors(FFColorsOptions* options) } else { - if (!instance.config.display.pipe) - ffStrbufAppendF(&result, "\e[10%dm", i - 8); + ffStrbufAppendF(&result, "\e[10%dm", i - 8); ffStrbufAppendNC(&result, options->block.width, ' '); } }