diff --git a/Userland/Libraries/LibGUI/TextPosition.h b/Userland/Libraries/LibGUI/TextPosition.h index f650c1c6ca..e779a02432 100644 --- a/Userland/Libraries/LibGUI/TextPosition.h +++ b/Userland/Libraries/LibGUI/TextPosition.h @@ -30,6 +30,8 @@ public: bool operator==(const TextPosition& other) const { return m_line == other.m_line && m_column == other.m_column; } bool operator!=(const TextPosition& other) const { return m_line != other.m_line || m_column != other.m_column; } bool operator<(const TextPosition& other) const { return m_line < other.m_line || (m_line == other.m_line && m_column < other.m_column); } + bool operator>(const TextPosition& other) const { return *this != other && !(*this < other); } + bool operator>=(const TextPosition& other) const { return *this > other || (*this == other); } private: size_t m_line { 0xffffffff };