From 483325990cea88d768dfa2b80358e5fdb21a725f Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 26 Dec 2023 23:42:50 +0100 Subject: [PATCH] fix: Byte foreground highlighting being disabled during editing --- plugins/ui/source/ui/hex_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ui/source/ui/hex_editor.cpp b/plugins/ui/source/ui/hex_editor.cpp index 6ab93c777..3f84f31c2 100644 --- a/plugins/ui/source/ui/hex_editor.cpp +++ b/plugins/ui/source/ui/hex_editor.cpp @@ -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();