From deef9a73a55448ff0508df484cae4b7bafbf60fb Mon Sep 17 00:00:00 2001 From: Ivan Shakhov Date: Thu, 28 Jan 2021 22:41:12 +0100 Subject: Fix off by one error navigating to line number in Rider Fixes https://github.com/JetBrains/godot-support/issues/61 --- .../mono/editor/GodotTools/GodotTools/Ides/Rider/RiderPathManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3