Files
neovim/runtime/lua/vim
Jaehwang Jung 6bb40f3dbf fix(lsp): prevent desync due to empty buffer (#29904)
Problem:
Some language servers (e.g., rust-analyzer, texlab) are desynced when
the user deletes the entire contents of the buffer. This is due to the
discrepancy between how nvim computes diff and how nvim treats empty
buffer.
* diff: If the buffer became empty, then the diff includes the last
  line's eol.
* empty buffer: Even if the buffer is empty, nvim regards it as having
  a single empty line with eol.

Solution:
Add special case for diff computation when the buffer becomes empty so
that it does not include the eol of the last line.
2024-07-31 16:18:24 +02:00
..
2024-06-08 21:38:06 +02:00
2024-06-07 10:55:14 +08:00
2024-03-06 10:45:22 +00:00
2024-05-27 20:48:46 +02:00
2024-01-16 09:33:10 +00:00
2024-05-27 20:48:46 +02:00
2024-03-16 19:26:10 +00:00
2024-03-16 19:26:10 +00:00
2024-04-30 07:04:42 +08:00