diff --git a/StabilityMatrix.Avalonia/Behaviors/TextEditorCompletionBehavior.cs b/StabilityMatrix.Avalonia/Behaviors/TextEditorCompletionBehavior.cs index ff71c229..c9c4fd49 100644 --- a/StabilityMatrix.Avalonia/Behaviors/TextEditorCompletionBehavior.cs +++ b/StabilityMatrix.Avalonia/Behaviors/TextEditorCompletionBehavior.cs @@ -222,7 +222,7 @@ public class TextEditorCompletionBehavior : Behavior var startOffset = currentToken.StartIndex + line.Offset; - var endOffset = currentToken.EndIndex + line.EndOffset; + var endOffset = currentToken.EndIndex + line.Offset; // Cap the offsets by the line offsets return new TextSegment