mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: More search issues
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -300,6 +300,8 @@ namespace hex::plugin::builtin {
|
||||
matchedBytes = 0;
|
||||
}
|
||||
} else {
|
||||
if (matchedBytes > 0)
|
||||
it -= matchedBytes;
|
||||
matchedBytes = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user