mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-11-28 21:20:23 +03:00
fix: lsp: Don't consume \n\n as a single newline
This commit is contained in:
parent
3cb95be452
commit
fe17b99ab3
@ -368,7 +368,7 @@ impl Client {
|
||||
// LSP only considers \n, \r or \r\n as line endings
|
||||
if ch == '\n' || ch == '\r' {
|
||||
// consume a \r\n
|
||||
if chars.peek() == Some(&'\n') {
|
||||
if ch == '\r' && chars.peek() == Some(&'\n') {
|
||||
chars.next();
|
||||
}
|
||||
line += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user