Просмотр исходного кода

- We need to invalidate the selection area when we replace the
selection.


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

Jackson Harper 19 лет назад
Родитель
Сommit
a0aedc6ee3

+ 2 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

@@ -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  <[email protected]>
 

+ 2 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs

@@ -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)) {