diff --git a/Source/Engine/UI/GUI/Common/RichTextBox.Parsing.cs b/Source/Engine/UI/GUI/Common/RichTextBox.Parsing.cs
index 6a0fe1574..ea6cebe6a 100644
--- a/Source/Engine/UI/GUI/Common/RichTextBox.Parsing.cs
+++ b/Source/Engine/UI/GUI/Common/RichTextBox.Parsing.cs
@@ -418,6 +418,13 @@ namespace FlaxEngine.GUI
context.Caret.Y += lineSize.Y * _baseLinesGapScale;
}
+ ///
+ /// Gets the next chunk end index for the given start index, based on the wrapping mode.
+ ///
+ /// Start index
+ /// End index
+ /// Wrapping mode
+ /// Next chunk end index
private int NextChunkEnd(int start, int end, TextWrapping wrapping)
{
int pos = start;