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
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ namespace hex::ui {
// Get byte foreground color // Get byte foreground color
auto popForeground = SCOPE_GUARD { ImGui::PopStyleColor(); }; 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); ImGui::PushStyleColor(ImGuiCol_Text, *foregroundColor);
else else
popForeground.release(); popForeground.release();