From 959ca301c5922c9d1213790a575e89f2dfd14fda Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Thu, 1 Jun 2006 19:07:42 +0000 Subject: [PATCH] Fixed SD2-831: Text editor jumping after copy and paste git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1445 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../ICSharpCode.TextEditor/Project/Src/Gui/TextAreaControl.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextAreaControl.cs b/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextAreaControl.cs index 5419970efa..36d85741a1 100644 --- a/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextAreaControl.cs +++ b/src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextAreaControl.cs @@ -301,6 +301,8 @@ namespace ICSharpCode.TextEditor if (motherTextEditorControl.IsInUpdate) { scrollToPosOnNextUpdate = new Point(column, line); return; + } else { + scrollToPosOnNextUpdate = Point.Empty; } int curCharMin = (int)(this.hScrollBar.Value - this.hScrollBar.Minimum); int curCharMax = curCharMin + textArea.TextView.VisibleColumnCount;