Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix error marker postion errors in Error Strip #130
This PR resolves #129. Now, the first marker has been made visible, and the off-by-one-line error fixed.
The fix was just a tiny correction in the lineToY() method. Instead of going from [-2 to height], Y now goes from [0 to height-2], so that both the first and last markers display.
Actually, although this is not document, ParserNotices should return line indexes in the range
However, we do cut off the top 2 pixels of marked occurrences on the first line, so I will apply a modified version of your fix to address that (painting in the y-range