Skip to content

Commit bd07443

Browse files
committed
Fixed wrong cursor position when undo
1 parent 7ba4484 commit bd07443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qhexedit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ QString QHexEdit::toReadableString()
478478
void QHexEdit::undo()
479479
{
480480
_undoStack->undo();
481-
setCursorPosition(_chunks->pos()*(_editAreaIsAscii ? 1 : 2));
481+
setCursorPosition(_chunks->pos()*2);
482482
refresh();
483483
}
484484

0 commit comments

Comments
 (0)