mirror of https://github.com/WerWolv/ImHex.git
fix: Undo points not being created correctly
This commit is contained in:
parent
f5440ee52c
commit
227040f82f
|
@ -694,7 +694,7 @@ struct MemoryEditor
|
|||
|
||||
if (data_next && DataEditingAddr < mem_size)
|
||||
{
|
||||
DataEditingAddr = DataPreviewAddr = DataEditingAddr + 1;
|
||||
DataEditingAddr = DataPreviewAddr = DataPreviewAddrEnd = DataEditingAddr + 1;
|
||||
DataEditingTakeFocus = true;
|
||||
}
|
||||
else if (data_editing_addr_next != (size_t)-1)
|
||||
|
|
|
@ -62,7 +62,7 @@ namespace hex::plugin::builtin::prv {
|
|||
if ((offset - this->getBaseAddress()) > (this->getActualSize() - size) || buffer == nullptr || size == 0)
|
||||
return;
|
||||
|
||||
addPatch(offset, buffer, size);
|
||||
addPatch(offset, buffer, size, true);
|
||||
}
|
||||
|
||||
void FileProvider::readRaw(u64 offset, void *buffer, size_t size) {
|
||||
|
|
Loading…
Reference in New Issue