diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index 3fd1aeb27..00105e497 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -957,7 +957,7 @@ namespace hex::plugin::builtin { if (newProvider != nullptr) { m_hexEditor.setSelectionUnchecked(m_selectionStart.get(newProvider), m_selectionEnd.get(newProvider)); } else { - ImHexApi::HexEditor::clearSelection(); + m_hexEditor.setSelectionUnchecked(std::nullopt, std::nullopt); } if (isSelectionValid()) {