mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: All bytes being selected when opening a new provider
This commit is contained in:
@@ -894,9 +894,11 @@ namespace hex::plugin::builtin {
|
||||
|
||||
auto selection = this->m_hexEditor.getSelection();
|
||||
|
||||
oldData.selectionStart = selection.getStartAddress();
|
||||
oldData.selectionEnd = selection.getEndAddress();
|
||||
oldData.scrollPosition = this->m_hexEditor.getScrollPosition();
|
||||
if (selection != Region::Invalid()) {
|
||||
oldData.selectionStart = selection.getStartAddress();
|
||||
oldData.selectionEnd = selection.getEndAddress();
|
||||
oldData.scrollPosition = this->m_hexEditor.getScrollPosition();
|
||||
}
|
||||
}
|
||||
|
||||
if (newProvider != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user