From: Jackson Harper Date: Tue, 19 Dec 2006 18:10:31 +0000 (-0000) Subject: - We need to invalidate the selection area when we replace the X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=a0aedc6ee3ce54fe16f33a1f0e047de8a98e5c3f;p=mono.git - We need to invalidate the selection area when we replace the selection. svn path=/trunk/mcs/; revision=69765 --- diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index 782fae44c12..97c1cedde84 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/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 diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs index c5114063df2..9ad28abe24d 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextControl.cs +++ b/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)) {