I have a weird problem with my port of QScintilla2:
The first line gets repeated all the way down the editor. I'm not sure about the odd placement of the 2nd line there, that happened randomly whilst I was doing something else. Some attempts to highlight sometimes show the correct line, sometimes don't. Scrolling down just causes the new top line to repeat down the page.
It seems unlikely that such a bug would be present in the library, and all I've done is replaced every occurance of Point, Window and Menu with QSPoint, QSWindow and QSMenu (to avoid clashes with graphics and intuition libraries).
It also isn't an application problem, as the example application, JuffEd and QSciTE all exhibit exactly the same behaviour. JuffEd and QSciTE show line numbers icons down the side and those seem to be OK, however I'm not sure if these are part of QScintilla or an addition by the application.
So I'm left with thinking it might be an obscure bug in Qt's text routines, but as normal text editing is fine I am very confused.
QScintilla is here if anybody wants to examine it:
http://homepage.ntlworld.com/cdyoung/tmp/qscintilla.lhaCopy the library out of Qt4 and into Qt:lib
Run the example from Qt4-example