fix(style): apply merging only if it differs from the default values
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 42s

This commit is contained in:
2025-01-07 13:08:13 +01:00
parent 0015bac9ff
commit 817056cf8b

View File

@@ -120,13 +120,13 @@ pub fn merge(this: *@This(), other: @This()) void {
if (other.bg != .default) this.bg = other.bg;
if (other.ul != .default) this.ul = other.ul;
if (other.ul_style != .off) this.ul_style = other.ul_style;
if (other.bold == false) this.bold = other.bold;
if (other.dim == false) this.dim = other.dim;
if (other.italic == false) this.italic = other.italic;
if (other.blink == false) this.blink = other.blink;
if (other.reverse == false) this.reverse = other.reverse;
if (other.invisible == false) this.invisible = other.invisible;
if (other.strikethrough == false) this.strikethrough = other.strikethrough;
if (other.bold != false) this.bold = other.bold;
if (other.dim != false) this.dim = other.dim;
if (other.italic != false) this.italic = other.italic;
if (other.blink != false) this.blink = other.blink;
if (other.reverse != false) this.reverse = other.reverse;
if (other.invisible != false) this.invisible = other.invisible;
if (other.strikethrough != false) this.strikethrough = other.strikethrough;
}
fn start(this: @This(), writer: anytype) !void {