summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Shakhov <Ivan.Shakhov@jetbrains.com>2021-01-28 22:41:12 +0100
committerIvan Shakhov <Ivan.Shakhov@jetbrains.com>2021-01-28 22:41:12 +0100
commitdeef9a73a55448ff0508df484cae4b7bafbf60fb (patch)
treedbc65edce69322fe16663740b65d63cfbe616feb
parent726967f45318359d95e3b0c359e088ca6d430292 (diff)
Fix off by one error navigating to line number in Rider
Fixes https://github.com/JetBrains/godot-support/issues/61
-rw-r--r--modules/mono/editor/GodotTools/GodotTools/Ides/Rider/RiderPathManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools/Ides/Rider/RiderPathManager.cs b/modules/mono/editor/GodotTools/GodotTools/Ides/Rider/RiderPathManager.cs
index 16f91a0925..ed25cdaa63 100644
--- a/modules/mono/editor/GodotTools/GodotTools/Ides/Rider/RiderPathManager.cs
+++ b/modules/mono/editor/GodotTools/GodotTools/Ides/Rider/RiderPathManager.cs
@@ -104,7 +104,7 @@ namespace GodotTools.Ides.Rider
if (line >= 0)
{
args.Add("--line");
- args.Add(line.ToString());
+ args.Add((line + 1).ToString()); // https://github.com/JetBrains/godot-support/issues/61
}
args.Add(scriptPath);
try