From 8c4c4f5e8b10731c792d426fdfc9bb89cbe1bedc Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 29 Nov 2024 20:43:37 +0100 Subject: [PATCH] impr: Hide segment number in hex editor when holding down shift --- 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 7db86f03b..881fb1d01 100644 --- a/plugins/ui/source/ui/hex_editor.cpp +++ b/plugins/ui/source/ui/hex_editor.cpp @@ -589,7 +589,7 @@ namespace hex::ui { const auto rowAddress = y * m_bytesPerRow + m_provider->getBaseAddress() + m_provider->getCurrentPageAddress(); - if (m_separatorStride > 0 && rowAddress % m_separatorStride < m_bytesPerRow) + if (m_separatorStride > 0 && rowAddress % m_separatorStride < m_bytesPerRow && !ImGui::GetIO().KeyShift) ImGuiExt::TextFormattedColored(ImGui::GetStyleColorVec4(ImGuiCol_SeparatorActive), "{} {}", "hex.ui.common.segment"_lang, rowAddress / m_separatorStride); else ImGuiExt::TextFormatted(m_upperCaseHex ? "{:08X}: " : "{:08x}: ", rowAddress);