Skip to content

Commit

Permalink
Append with line feed
Browse files Browse the repository at this point in the history
  • Loading branch information
jojorne committed Jun 19, 2024
1 parent ad90606 commit a7b794b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AvaloniaLSP/AvaloniaLanguageServer/Services/Buffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public sealed class Buffer
string[] lines = _text.Split(separator, StringSplitOptions.None);
string text = string.Join("\n", lines[..position.Line]);
string line = lines[position.Line][..position.Character];
return text + line;
return $"{text}\n{line}";
}

public string? GetLine(Position position)
Expand Down

0 comments on commit a7b794b

Please sign in to comment.