Skip to content

Commit

Permalink
fix for negative index
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaharMS committed Jan 30, 2023
1 parent fbd5585 commit 1c8df03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/texter/general/math/MathLexer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class MathLexer
var closuresMerged = numbersMerged.copy();
trace(closuresMerged);
var i = 0;
var start:Int = -1, end:Int = -1;
var start:Int = 0, end:Int = -1;
var elements:Array<MathAttribute> = [];
while (i < numbersMerged.length)
{
Expand Down

0 comments on commit 1c8df03

Please sign in to comment.