mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Modifying last byte in row copies first byte from current row to next row
Fixes #1329
This commit is contained in:
@@ -160,7 +160,7 @@ namespace hex::plugin::builtin::ui {
|
||||
void HexEditor::drawCell(u64 address, u8 *data, size_t size, bool hovered, CellType cellType) {
|
||||
static DataVisualizerAscii asciiVisualizer;
|
||||
|
||||
if (this->m_shouldUpdateEditingValue) {
|
||||
if (this->m_shouldUpdateEditingValue && address == this->m_editingAddress) {
|
||||
this->m_shouldUpdateEditingValue = false;
|
||||
this->m_editingBytes.resize(size);
|
||||
std::memcpy(this->m_editingBytes.data(), data, size);
|
||||
|
||||
Reference in New Issue
Block a user