Skip to content

Commit

Permalink
CompositorConfig // Sanity-check maxSpanLength on init.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShikiSuen committed Feb 13, 2025
1 parent 3cd1bf6 commit 2ce18ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Megrez/src/1_Compositor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ public CompositorConfig(List<Node>? walkedNodes = null, List<string>? keys = nul
Keys = keys ?? new List<string>();
Spans = spans ?? new List<Compositor.SpanUnit>();
_cursor = cursor;
_maxSpanLength = maxSpanLength;
_maxSpanLength = Math.Max(6, maxSpanLength);
_marker = marker;
Separator = separator ?? "";
}
Expand Down

0 comments on commit 2ce18ab

Please sign in to comment.