Explorar el Código

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); }
```
Brian Gianforcaro hace 3 años
padre
commit
0998074230
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Userland/Libraries/LibVT/Attribute.h

+ 1 - 1
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 };