fix: Hex editor editing cursor not advancing on non-zero pages

This commit is contained in:
WerWolv 2023-01-10 13:48:50 +01:00
parent be1f711fda
commit 766fd626f2
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ namespace hex::plugin::builtin::ui {
auto nextEditingAddress = *this->m_editingAddress + this->m_currDataVisualizer->getBytesPerCell();
this->setSelection(nextEditingAddress, nextEditingAddress);
if (nextEditingAddress >= this->m_provider->getSize())
if (nextEditingAddress >= this->m_provider->getBaseAddress() + this->m_provider->getCurrentPageAddress() + this->m_provider->getSize())
this->m_editingAddress = std::nullopt;
else
this->m_editingAddress = nextEditingAddress;