Fix CharCount, CharIndexToLineTag, recalculate wrapped lines.
commit3d9e4fa7f4b039af6e2249e7349445aeaaaa1a0f
authorKarl <karl@scowencomputers.co.nz>
Sat, 9 Jun 2018 05:14:28 +0000 (9 17:14 +1200)
committerKarl <contact@scowencomputers.co.nz>
Mon, 13 Jan 2020 04:54:00 +0000 (13 17:54 +1300)
tree927a78596ff2db22849f457226fc1fcc7fab6ff2
parent11a89a53ab9b43dc347b0940e8e0f832adf2101b
Fix CharCount, CharIndexToLineTag, recalculate wrapped lines.

CharCount / length was inconsistent about counting line endings. Fixed
to include them all, as that was much easier than the other way.

When shortening a wrapped line, it is necessary to start the recalculate
at the previous line, in case the wrap point has changed.

In CharIndexToLineTag, if there is a line boundary at the specified
index, return the line starting at the index.

Fixed a few other things too.
mcs/class/System.Windows.Forms/System.Windows.Forms/TextControl.cs