Files
neovim/runtime/lua/vim
Barrett Ruth 81e01a80b9 fix(lsp): support -1 column in format range #40570
Problem:
`vim.lsp.buf.format()` accepts ranges using nvim indexing, where an
end column of -1 means end of line. LSP ranges cannot use that,
which is confusing for things like range formatting.

Solution:
Resolve -1 end columns to the line length before converting the range to
LSP positions.
2026-07-05 06:14:55 -04:00
..
2026-07-01 13:26:21 +02:00
2026-05-10 11:03:15 -04:00
2026-07-01 13:00:06 +02:00
2026-06-08 16:12:14 -04:00
2026-01-09 10:07:15 +01:00
2026-05-30 12:57:24 +02:00
2026-05-11 16:51:58 +08:00
2026-05-10 11:03:15 -04:00
2026-05-30 12:57:24 +02:00