patterns: Fixed jumping to and displaying tooltips of static array entries

This commit is contained in:
WerWolv
2022-02-20 23:54:31 +01:00
parent 2e95184d30
commit 754eb89f04
2 changed files with 13 additions and 4 deletions

View File

@@ -229,7 +229,7 @@ namespace hex::plugin::builtin {
for (const auto &pattern : patterns) {
auto child = pattern->getPattern(address);
if (child != nullptr) {
return ImHexApi::HexEditor::Highlighting(Region { address, 1 }, child->getColor(), child->getVariableName());
return ImHexApi::HexEditor::Highlighting(Region { address, 1 }, child->getColor(), child->getDisplayName());
}
}
@@ -672,7 +672,7 @@ namespace hex::plugin::builtin {
}
if (result) {
EventManager::post<EventHighlightingChanged>();
ImHexApi::HexEditor::invalidateHighlight();
}
this->m_runningEvaluators--;