From 09980742302af0fd07b8f54ab99c5d9b104d042e Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 20 Mar 2022 12:46:05 -0700 Subject: [PATCH] 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); } ``` --- Userland/Libraries/LibVT/Attribute.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibVT/Attribute.h b/Userland/Libraries/LibVT/Attribute.h index 684a403b3a7..9b6a9ea8973 100644 --- a/Userland/Libraries/LibVT/Attribute.h +++ b/Userland/Libraries/LibVT/Attribute.h @@ -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_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 };