patterns: Fixed highlighting of custom sections

This commit is contained in:
WerWolv
2023-02-17 14:53:15 +01:00
parent 21dc65f42a
commit 64e34e42b8
5 changed files with 31 additions and 5 deletions

View File

@@ -208,7 +208,7 @@ namespace hex::plugin::builtin::ui {
ImGui::PushID(pattern.getVariableName().c_str());
if (ImGui::Selectable("##PatternLine", false, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowItemOverlap)) {
ImHexApi::HexEditor::setSelection(pattern.getOffset(), pattern.getSize());
this->m_selectionCallback(Region { pattern.getOffset(), pattern.getSize() });
this->resetEditing();
}