mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fix shown target Line Number
on manual JUMP and END SCRIPT in debug log
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user