Browse Source

Fix completion line end offset

pull/165/head
Ionite 1 year ago
parent
commit
6cc9a6d706
No known key found for this signature in database
  1. 2
      StabilityMatrix.Avalonia/Behaviors/TextEditorCompletionBehavior.cs

2
StabilityMatrix.Avalonia/Behaviors/TextEditorCompletionBehavior.cs

@ -222,7 +222,7 @@ public class TextEditorCompletionBehavior : Behavior<TextEditor>
var startOffset = currentToken.StartIndex + line.Offset; 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 // Cap the offsets by the line offsets
return new TextSegment return new TextSegment

Loading…
Cancel
Save