1
0
mirror of synced 2025-01-31 03:53:44 +01:00

fix: More search issues

This commit is contained in:
WerWolv 2022-08-06 13:16:53 +02:00
parent 3dc5f0e2be
commit a97f853110
2 changed files with 28 additions and 0 deletions

View File

@ -81,6 +81,19 @@ namespace hex::prv {
return copy;
}
Iterator& operator--() {
this->m_address--;
return *this;
}
Iterator operator--(int) {
auto copy = *this;
this->m_address--;
return copy;
}
Iterator& operator+=(i64 offset) {
this->m_address += offset;
@ -156,6 +169,19 @@ namespace hex::prv {
return copy;
}
ReverseIterator& operator--() {
this->m_address++;
return *this;
}
ReverseIterator operator--(int) {
auto copy = *this;
this->m_address++;
return copy;
}
ReverseIterator& operator+=(i64 offset) {
this->m_address -= offset;

View File

@ -300,6 +300,8 @@ namespace hex::plugin::builtin {
matchedBytes = 0;
}
} else {
if (matchedBytes > 0)
it -= matchedBytes;
matchedBytes = 0;
}
}