mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Fix failing tests
This commit is contained in:
parent
77140fc798
commit
2402c6f253
1 changed files with 4 additions and 1 deletions
|
|
@ -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;");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue