mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
LibLine: Unify the is-empty flag in Style::unify_with() as well
Not doing so can make the final unified state incorrectly marked as empty, and will make LibLine ignore the style.
This commit is contained in:
parent
a6d1307aa4
commit
e312d6530b
1 changed files with 2 additions and 0 deletions
|
@ -1709,6 +1709,8 @@ void Style::unify_with(Style const& other, bool prefer_other)
|
|||
// Unify links.
|
||||
if (prefer_other || m_hyperlink.is_empty())
|
||||
m_hyperlink = other.hyperlink();
|
||||
|
||||
m_is_empty &= other.m_is_empty;
|
||||
}
|
||||
|
||||
DeprecatedString Style::to_deprecated_string() const
|
||||
|
|
Loading…
Add table
Reference in a new issue