- We need to invalidate the selection area when we replace the
authorJackson Harper <jackson@novell.com>
Tue, 19 Dec 2006 18:10:31 +0000 (18:10 -0000)
committerJackson Harper <jackson@novell.com>
Tue, 19 Dec 2006 18:10:31 +0000 (18:10 -0000)
        selection.

svn path=/trunk/mcs/; revision=69765

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs

index 782fae44c12ae6e1ce54630b2ca68670c4882420..97c1cedde842868155daf60e079a21ef02085510 100644 (file)
@@ -14,6 +14,8 @@
        - when calculating alignments we might have wrapped down to the
        next line, so don't search for an individual tag, search for the
        end of the line
+       - We need to invalidate the selection area when we replace the
+       selection.
        
 2006-12-19  Daniel Nauck  <dna@mono-project.de>
 
index c5114063df2a4c7c25002c0f462f936449702890..9ad28abe24d306bcaa0e85a1c0280c36f9b831f2 100644 (file)
@@ -3268,6 +3268,8 @@ namespace System.Windows.Forms {
 
                        undo.BeginCompoundAction ();
 
+                       InvalidateSelectionArea ();
+
                        int selection_start_pos = LineTagToCharIndex (selection_start.line, selection_start.pos);
                        // First, delete any selected text
                        if ((selection_start.pos != selection_end.pos) || (selection_start.line != selection_end.line)) {