Browse Source

Before combining two lines for a delete, we need
to invalidate the area of the old line, since that will be moved
in the combine operation.


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

Jackson Harper 18 years ago
parent
commit
61c4e74dfd

+ 3 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs

@@ -1175,7 +1175,10 @@ namespace System.Windows.Forms {
 					line = document.GetLine(document.CaretLine.LineNo - 1);
 					new_caret_pos = line.TextLengthWithoutEnding ();
 
+					// Invalidate the old line position before we do the combine
+					document.Invalidate (line, 0, line, line.text.Length);
 					document.Combine(line, document.CaretLine);
+
 					document.UpdateView(line, document.Lines - line.LineNo, 0);
 					document.PositionCaret(line, new_caret_pos);
 					document.SetSelectionToCaret (true);