From 42606b9f109083e71bbb2781a6c413caf1c3ee2a Mon Sep 17 00:00:00 2001 From: Phantom Date: Tue, 6 Oct 2026 17:36:49 +0200 Subject: [PATCH] Add comment on NextChunkEnd --- Source/Engine/UI/GUI/Common/RichTextBox.Parsing.cs | 7 +++++++ 1 file changed, 7 insertions(+) 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;