Fix shown target Line Number

on manual JUMP and END SCRIPT in debug log
This commit is contained in:
meinname
2019-09-08 00:54:12 +02:00
committed by GitHub
parent 0fcbcad375
commit 3c55aaa77f
+2 -2
View File
@@ -338,7 +338,7 @@ namespace RuriLib.LS
{
label = LineParser.ParseToken(ref cfLine, TokenType.Label, true);
i = ScanFor(lines, -1, true, new string[] { $"{label}" }) - 1;
data.LogBuffer.Add(new LogEntry($"Jumping to line {i + 1}", Colors.White));
data.LogBuffer.Add(new LogEntry($"Jumping to line {i + 2}", Colors.White));
}
catch { throw new Exception($"No block with label {label} was found"); }
break;
@@ -358,7 +358,7 @@ namespace RuriLib.LS
otherScript = string.Join(Environment.NewLine, lines.Skip(i + 1).Take(end - i));
i = end;
data.LogBuffer.Add(new LogEntry($"Jumping to line {i + 1}", Colors.White));
data.LogBuffer.Add(new LogEntry($"Jumping to line {i + 2}", Colors.White));
break;
}
break;