mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Multiline search crash fix.
This commit is contained in:
@@ -39,6 +39,14 @@ class EE_API TextPosition {
|
||||
return mLine > other.mLine || ( mLine == other.mLine && mColumn > other.mColumn );
|
||||
}
|
||||
|
||||
bool operator<=( const TextPosition& other ) const {
|
||||
return mLine <= other.mLine || ( mLine == other.mLine && mColumn <= other.mColumn );
|
||||
}
|
||||
|
||||
bool operator>=( const TextPosition& other ) const {
|
||||
return mLine >= other.mLine || ( mLine == other.mLine && mColumn >= other.mColumn );
|
||||
}
|
||||
|
||||
TextPosition operator+( const TextPosition& other ) const {
|
||||
return {mLine + other.line(), mColumn + other.column()};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user