Skip to content

Commit

Permalink
[lib] Fixed separator length not setting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mta452 committed Nov 30, 2023
1 parent b2ae8d6 commit bf2c3eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/SBAlgorithm.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ void SBAlgorithmGetParagraphBoundary(SBAlgorithmRef algorithm,
SBUInteger limitIndex;
SBUInteger startIndex;

if (separatorLength) {
*separatorLength = 0;
}

SBUIntegerNormalizeRange(codepointSequence->stringLength, &paragraphOffset, &suggestedLength);
limitIndex = paragraphOffset + suggestedLength;

Expand Down

0 comments on commit bf2c3eb

Please sign in to comment.