1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:07:45 +00:00

LIbVT: Fix copy paste regression I introduced in #13102

I accidentally inverted this behavior in commit 2042d909972

Previously it read:
```cpp
constexpr bool is_untouched() const { return !(flags & Touched); }
```
This commit is contained in:
Brian Gianforcaro 2022-03-20 12:46:05 -07:00 committed by Andreas Kling
parent b8cc18896f
commit 0998074230

View file

@ -55,7 +55,7 @@ struct Attribute {
constexpr Color effective_background_color() const { return has_flag(flags, Flags::Negative) ? foreground_color : background_color; } constexpr Color effective_background_color() const { return has_flag(flags, Flags::Negative) ? foreground_color : background_color; }
constexpr Color effective_foreground_color() const { return has_flag(flags, Flags::Negative) ? background_color : foreground_color; } constexpr Color effective_foreground_color() const { return has_flag(flags, Flags::Negative) ? background_color : foreground_color; }
constexpr bool is_untouched() const { return has_flag(flags, Flags::Touched); } constexpr bool is_untouched() const { return !has_flag(flags, Flags::Touched); }
Flags flags { Flags::NoAttributes }; Flags flags { Flags::NoAttributes };