You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mattmook, I only changed the code to not treat offset between \r\n as part of the next line. So only offsets after complete EOL reflect next line number.
Fix for this is available. Repo updated, maven updated but may take a while to show up in maven central.
Document.getLineNumber
assumes the end-of-line character is just one character wide and so on Windows Lin numbers are, effectively, doubled.To Reproduce
Given the following we would expect the line number for the 7th character ('W') to return 1, however it returns 2:
Additional context
I have created the PR #339 to fix this issue
The text was updated successfully, but these errors were encountered: