impr: Allow Home/End to work in hex editor view

This commit is contained in:
WerWolv
2023-12-29 11:30:23 +01:00
parent 4cbd84671c
commit 3592d17c93
3 changed files with 23 additions and 0 deletions

View File

@@ -407,6 +407,7 @@ namespace hex::ui {
m_visibleRowCount = ImGui::GetWindowSize().y / CharacterSize.y;
m_visibleRowCount = std::clamp<u32>(m_visibleRowCount, 1, numRows - m_scrollPosition);
// Loop over rows
for (ImS64 y = m_scrollPosition; y < (m_scrollPosition + m_visibleRowCount + 5) && y < numRows && numRows != 0; y++) {