Fix failing tests
This commit is contained in:
parent
77140fc798
commit
2402c6f253
1 changed files with 4 additions and 1 deletions
|
|
@ -733,8 +733,11 @@ cell_as_sgr(const GPUCell *cell, const GPUCell *prev) {
|
|||
#define PA prev->attrs
|
||||
bool intensity_differs = CA.bold != PA.bold || CA.dim != PA.dim;
|
||||
if (intensity_differs) {
|
||||
if (CA.bold && CA.dim) { if (!PA.bold) P("1;"); if (!PA.dim) P("2;"); }
|
||||
else {
|
||||
P("22;"); if (CA.bold) P("1;"); if (CA.dim) P("2;");
|
||||
}
|
||||
}
|
||||
if (CA.italic != PA.italic) P(CA.italic ? "3;" : "23;");
|
||||
if (CA.reverse != PA.reverse) P(CA.reverse ? "7;" : "27;");
|
||||
if (CA.strike != PA.strike) P(CA.strike ? "9;" : "29;");
|
||||
|
|
|
|||
Loading…
Reference in a new issue