mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
feat: Added new --select, --pattern and --debug-mode subcommands
This commit is contained in:
@@ -144,7 +144,7 @@ namespace hex::ui {
|
||||
if (!m_selectionStart.has_value()) m_selectionStart = start;
|
||||
if (!m_selectionEnd.has_value()) m_selectionEnd = end;
|
||||
|
||||
if (auto bytesPerCell = m_currDataVisualizer->getBytesPerCell(); bytesPerCell > 1) {
|
||||
if (auto bytesPerCell = m_currDataVisualizer == nullptr ? 1 : m_currDataVisualizer->getBytesPerCell(); bytesPerCell > 1) {
|
||||
if (end > start) {
|
||||
start = alignDown(start, bytesPerCell);
|
||||
end = alignDown(end, bytesPerCell) + (bytesPerCell - 1);
|
||||
|
||||
Reference in New Issue
Block a user