Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnže Vodovnik <anvod@microsoft.com>2019-09-19 20:10:55 +0300
committerAnže Vodovnik <anvod@microsoft.com>2019-09-19 20:10:55 +0300
commita996429c22d442897bba4c202afad62331edf78d (patch)
treea36a769025c759597d09e47a1cc22b70dc6abbab /main/src/core/MonoDevelop.Ide
parent38a7cf5f8494027e68d6782b152ef206a7f74d7a (diff)
Making sure the fix for navigating to next/prev errors continues to work.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskStore.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskStore.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskStore.cs
index 1347e3d21c..db28545b59 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskStore.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskStore.cs
@@ -419,8 +419,11 @@ namespace MonoDevelop.Ide.Tasks
class TaskNavigationPoint : TextFileNavigationPoint
{
TaskListEntry task;
-
- public TaskNavigationPoint (TaskListEntry task) : base (task.FileName, task.Line, task.Column)
+
+ // Due to changes in the editor, the offsets of how we count lines seem to be different
+ // so it makes sense that we try to do translation at this point, where it doesn't change
+ // the logic in either <see cref="TextFileNavigationPoint"/> or in the TaskStore.
+ public TaskNavigationPoint (TaskListEntry task) : base (task.FileName, task.Line - 1, task.Column - 1)
{
this.task = task;
}