From 766fd626f2a7ca2a0a2da4328417f5c6d0247b70 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 10 Jan 2023 13:48:50 +0100 Subject: [PATCH] fix: Hex editor editing cursor not advancing on non-zero pages --- plugins/builtin/source/ui/hex_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/ui/hex_editor.cpp b/plugins/builtin/source/ui/hex_editor.cpp index a64b0b0c6..78aa9c0c2 100644 --- a/plugins/builtin/source/ui/hex_editor.cpp +++ b/plugins/builtin/source/ui/hex_editor.cpp @@ -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;