diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-11-10 13:57:16 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-11-10 13:57:16 +0400 |
commit | 3888e6da52471c04f1fa32b8cfc09d28306f4468 (patch) | |
tree | 9c32c55e279a9edff58c1e8e68cf12083e874987 /main/src/addins/MonoDevelop.SourceEditor2 | |
parent | 67bd25e335afc8430e450f6e402471f3c850b239 (diff) |
Fixed "Bug 1291 - Go to declaration and Navigate to... don't position
correctly".
Diffstat (limited to 'main/src/addins/MonoDevelop.SourceEditor2')
-rw-r--r-- | main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs index 5987302db0..f1ffdff3b9 100644 --- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs +++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs @@ -1116,12 +1116,13 @@ namespace MonoDevelop.SourceEditor public void SetCaretTo (int line, int column) { - widget.TextEditor.SetCaretTo (line, column, true); + this.Document.RunWhenLoaded (() => widget.TextEditor.SetCaretTo (line, column, true)); + } public void SetCaretTo (int line, int column, bool highlight) { - widget.TextEditor.SetCaretTo (line, column, highlight); + this.Document.RunWhenLoaded (() => widget.TextEditor.SetCaretTo (line, column, highlight)); } public void Redo() |