Colors: don't disable color if --color-symbol background is set in --pipe mode

This commit is contained in:
李通洲
2024-07-16 14:32:51 +08:00
parent 2a9f9d5a34
commit bd0b108c04
+2 -4
View File
@@ -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, ' ');
}
}