Skip to content

Commit d32bb0f

Browse files
committed
Show insert cursor after last byte
1 parent 0a5233e commit d32bb0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/qhexedit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ void QHexEdit::paintEvent(QPaintEvent *event)
935935
int hexPos = _cursorPosition - 2 * _bPosFirst;
936936

937937
// due to scrolling the cursor can go out of the currently displayed data
938-
if ((hexPos >= 0) && (hexPos < _hexDataShown.size()))
938+
if ((hexPos >= 0) && (hexPos <= _hexDataShown.size()))
939939
{
940940
ColoredArea curArea;
941941
if (_editAreaIsAscii)

0 commit comments

Comments
 (0)