diff options
| author | Barrett Ruth <62671086+barrettruth@users.noreply.github.com> | 2026-07-05 05:14:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-05 06:14:55 -0400 |
| commit | 81e01a80b9a1271ba8c990e17d3e0943772dff1b (patch) | |
| tree | b1e2c5d573b43d1b3dca86209431e03e3cb7009f /test/functional/vimscript/executable_spec.lua | |
| parent | 0f86ea5ed857867f212ab7da06c25bcafcf49ca3 (diff) | |
| download | rneovim-81e01a80b9a1271ba8c990e17d3e0943772dff1b.tar.gz rneovim-81e01a80b9a1271ba8c990e17d3e0943772dff1b.tar.bz2 rneovim-81e01a80b9a1271ba8c990e17d3e0943772dff1b.zip | |
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.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions