mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 10:58:51 +00:00
Fix Hexdump Scroll Up Loading
This commit is contained in:
parent
839ec9fffe
commit
2af51a1af0
@ -838,8 +838,8 @@ void HexdumpWidget::scrollChanged()
|
|||||||
|
|
||||||
int firstLine = getDisplayedLined(ui->hexHexText);
|
int firstLine = getDisplayedLined(ui->hexHexText);
|
||||||
if (firstLine < (bufferLines / 2)) {
|
if (firstLine < (bufferLines / 2)) {
|
||||||
auto hexdump = fetchHexdump(first_loaded_address, bufferLines);
|
|
||||||
first_loaded_address -= bufferLines * cols;
|
first_loaded_address -= bufferLines * cols;
|
||||||
|
auto hexdump = fetchHexdump(first_loaded_address, bufferLines);
|
||||||
prependWithoutScroll(ui->hexOffsetText, hexdump[0]);
|
prependWithoutScroll(ui->hexOffsetText, hexdump[0]);
|
||||||
prependWithoutScroll(ui->hexHexText, hexdump[1]);
|
prependWithoutScroll(ui->hexHexText, hexdump[1]);
|
||||||
prependWithoutScroll(ui->hexASCIIText, hexdump[2]);
|
prependWithoutScroll(ui->hexASCIIText, hexdump[2]);
|
||||||
|
Loading…
Reference in New Issue
Block a user