1
0
mirror of synced 2024-11-12 02:00:52 +01:00

fix: Byte foreground highlighting being disabled during editing

This commit is contained in:
WerWolv 2023-12-26 23:42:50 +01:00
parent 83fa024fab
commit 483325990c

View File

@ -501,7 +501,7 @@ namespace hex::ui {
// Get byte foreground color
auto popForeground = SCOPE_GUARD { ImGui::PopStyleColor(); };
if (foregroundColor.has_value() && !m_editingAddress.has_value())
if (foregroundColor.has_value() && m_editingAddress != byteAddress)
ImGui::PushStyleColor(ImGuiCol_Text, *foregroundColor);
else
popForeground.release();