Browse Source

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
shortcuts
Daniel Grunwald 20 years ago
parent
commit
959ca301c5
  1. 2
      src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextAreaControl.cs

2
src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextAreaControl.cs

@ -301,6 +301,8 @@ namespace ICSharpCode.TextEditor
if (motherTextEditorControl.IsInUpdate) { if (motherTextEditorControl.IsInUpdate) {
scrollToPosOnNextUpdate = new Point(column, line); scrollToPosOnNextUpdate = new Point(column, line);
return; return;
} else {
scrollToPosOnNextUpdate = Point.Empty;
} }
int curCharMin = (int)(this.hScrollBar.Value - this.hScrollBar.Minimum); int curCharMin = (int)(this.hScrollBar.Value - this.hScrollBar.Minimum);
int curCharMax = curCharMin + textArea.TextView.VisibleColumnCount; int curCharMax = curCharMin + textArea.TextView.VisibleColumnCount;

Loading…
Cancel
Save