bschug / poedit

Path of Exile ItemScript Editor / Preview
20 stars 5 forks source link

Wrong Cursor Position If Lines End With Spaces #14

Closed bschug closed 9 years ago

bschug commented 9 years ago

If the script contains lines with trailing spaces, and the cursor is somewhere below that line, any features that are based on cursor position are broken: Auto-Indentation will not move the cursor to the correct position and Intellisense will not trigger correctly.

The reason for this seems to be a problem with the rangy library. If a line contains more than one trailing space, rangy seems to treat them as a single character.