Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 10, 2023
1 parent 77140fc commit 2402c6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kitty/line.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,10 @@ 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) {
P("22;"); if (CA.bold) P("1;"); if (CA.dim) P("2;");
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;");
Expand Down

0 comments on commit 2402c6f

Please sign in to comment.