mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 21:47:40 -05:00
fix: Moving cursor around using arrow keys behaving weirdly
This commit is contained in:
@@ -51,8 +51,8 @@ namespace hex::prv {
|
||||
offset = region.getEndAddress() + 1;
|
||||
|
||||
auto [newRegion, newValid] = this->getRegionValidity(offset + this->getBaseAddress());
|
||||
bufferSize = std::min(bufferSize, (newRegion.getEndAddress() - offset) + 1);
|
||||
bufferSize = std::min(bufferSize, this->getActualSize() - offset);
|
||||
bufferSize = std::min<size_t>(bufferSize, (newRegion.getEndAddress() - offset) + 1);
|
||||
bufferSize = std::min<size_t>(bufferSize, this->getActualSize() - offset);
|
||||
|
||||
this->read(offset + this->getBaseAddress(), buffer.data(), bufferSize, true);
|
||||
file.write(buffer.data(), bufferSize);
|
||||
|
||||
Reference in New Issue
Block a user