diff --git a/plugins/builtin/source/content/helpers/pattern_drawer.cpp b/plugins/builtin/source/content/helpers/pattern_drawer.cpp index 328a054e7..ffd1ec0da 100644 --- a/plugins/builtin/source/content/helpers/pattern_drawer.cpp +++ b/plugins/builtin/source/content/helpers/pattern_drawer.cpp @@ -81,7 +81,7 @@ namespace hex { bool createTreeNode(const pl::ptrn::Pattern& pattern) { if (pattern.isSealed()) { ImGui::Indent(); - ImGui::TextUnformatted(pattern.getDisplayName().c_str()); + highlightWhenSelected(pattern, [&]{ ImGui::TextUnformatted(pattern.getDisplayName().c_str()); }); ImGui::Unindent(); return false; }