Hi, after a long time I used my BasEdit once again and stumpled upon an old and long standing error:
When jumping wordwise left or right (ctrl-left, ctrl-right) sometimes the display got out-of-sync, i.e. showing a lot of spaces before the first character:
correct:
out-of-sync:
And finally I found the offending code
In modUtility.vb there are two routines,
EditWordLeft and
EditWordRight which have one subtle little error inside.
At each routine just before they end is a code block which adjusts the offset of the cursor to the horizontal scrolling offset. And here I mixed X and Y and used EditInfo.OffY instead of EditInfo.OffX
wrong code:
Code: Select all
If p >= 0 Then
EditInfo.X = p - EditInfo.OffY
EditInfo.ShowLine = True
End If
correct code:
Code: Select all
If p >= 0 Then
EditInfo.X = p - EditInfo.OffX
EditInfo.ShowLine = True
End If
I updated the versions I host (source and binary) to version 1.43.
I thought I place the info here so someone can make these changes in the Github-version, too.