Do I just not understand how this works or is this a bug?
I am trying to figure out which line of text the insertion point is on, so I am passing selStart to the lineNumAtCharPos function of a text area. If Im at the beginning of the line or after the first character of the start of the line it returns the line number above the line its actually on. If Im past the first 2 characters of the line it returns the correct value.
If it was just the beginning of the line Id say that its counting the end of line character as being the previous line. But its the beginning of the line AND the first character on the line?