* TextControl.cs: Redo Insert a little so that it use IndexOf
commit2aadc796c68766b2ddd51f0a1109784618d82858
authorJackson Harper <jackson@novell.com>
Tue, 5 Dec 2006 23:01:22 +0000 (5 23:01 -0000)
committerJackson Harper <jackson@novell.com>
Tue, 5 Dec 2006 23:01:22 +0000 (5 23:01 -0000)
treee1212edf11b2abd24951a560611f11cc1d24246a
parentb67ef3fd9aff042c76d2e845896e996afe952ed3
    * TextControl.cs: Redo Insert a little so that it use IndexOf
        instead of Split, this prevents it from messing up on things
like
        \n\n\n. Also more effecient since the split array doesn't need
to
        be created.
        * TextBoxBase.cs: AppendText doesnt handle multiline and non
        multiline text differently, this is the first of many fixes that
        will make multiline/non-multiline the same thing as far as the
        TextBoxBase is concerned.
        - Don't split the text and insert lines, this can lose some line
        endings (like is the last line a soft or hard break). Instead
use
        the new Insert.
        - Fix an off by one when combining all the lines in the Text
        getter.

svn path=/trunk/mcs/; revision=69079
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs