Add comment on NextChunkEnd

This commit is contained in:
Phantom
2026-10-06 17:36:49 +02:00
parent 45616c300c
commit 42606b9f10
@@ -418,6 +418,13 @@ namespace FlaxEngine.GUI
context.Caret.Y += lineSize.Y * _baseLinesGapScale;
}
/// <summary>
/// Gets the next chunk end index for the given start index, based on the wrapping mode.
/// </summary>
/// <param name="start">Start index</param>
/// <param name="end">End index</param>
/// <param name="wrapping">Wrapping mode</param>
/// <returns>Next chunk end index</returns>
private int NextChunkEnd(int start, int end, TextWrapping wrapping)
{
int pos = start;