fix: Pasting not working correctly on non-zero pages

Fixes #1291
This commit is contained in:
WerWolv
2023-09-03 16:25:51 +02:00
parent 563ff5a774
commit 4ff25819c2

View File

@@ -734,7 +734,7 @@ namespace hex::plugin::builtin {
// Write bytes
auto size = selectionCheck ? std::min(buffer.size(), selection.getSize()) : buffer.size();
provider->write(selection.getStartAddress() + provider->getBaseAddress() + provider->getCurrentPageAddress(), buffer.data(), size);
provider->write(selection.getStartAddress(), buffer.data(), size);
}
static void copyString(const Region &selection) {