Community
Participate
Working Groups
N20101003-2000 White space is sometimes wrongly rendered after horizontal scrolling in the editor. Checked options in prefs: Leading spaces, trailing spaces & tabs. Rest unchecked. When I now open a file that contains lines with leading tabs (e.g. a .project file), make the editor narrow such that the horizontal scroll bar appears, and then scroll horizontally, then leading tabs are sometimes also rendered. If you scroll very quickly, it sometimes renders correctly.
With the same options, I also see spaces painted when I have a sequence of multiple "enclosed" spaces (e.g. "int foo= 1;" and then select one or more of these spaces. Single spaces are OK.
Created attachment 180383 [details] fix As correctly pointed out by Markus, the problem was that the whole line is not always painted, and as a result the computation of textBegin and textEnd was wrong.
Markus, please commit the patch if it looks good to you.
Thanks, looks good and works fine, committed to HEAD. The fix adds a second call to StyledTextContent#getTextRange(int, int) that copies the char[] twice (if I remember correctly...). This can be improved with bug 326419.