patterns: Don't re-evaluate format functions during highlighting
This commit is contained in:
parent
c6c3ca4d26
commit
a0c89858ed
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
@ -1 +1 @@
|
||||
Subproject commit 72ab71a9166063f4688bc87d55be08ead4f0c1d7
|
||||
Subproject commit 85dac566096528099ae956a49a7ccfe7de1d3f97
|
@ -1179,14 +1179,11 @@ namespace hex::plugin::builtin {
|
||||
std::optional<ImColor> color;
|
||||
|
||||
if (TRY_LOCK(ContentRegistry::PatternLanguage::getRuntimeLock())) {
|
||||
for (const auto &pattern : runtime.getPatternsAtAddress(address)) {
|
||||
if (pattern->getVisibility() != pl::ptrn::Visibility::Visible)
|
||||
continue;
|
||||
|
||||
for (const auto &patternColor : runtime.getColorsAtAddress(address)) {
|
||||
if (color.has_value())
|
||||
color = ImAlphaBlendColors(*color, pattern->getColor());
|
||||
color = ImAlphaBlendColors(*color, patternColor);
|
||||
else
|
||||
color = pattern->getColor();
|
||||
color = patternColor;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user