aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorBarrett Ruth <62671086+barrettruth@users.noreply.github.com>2026-07-05 05:14:55 -0500
committerGitHub <noreply@github.com>2026-07-05 06:14:55 -0400
commit81e01a80b9a1271ba8c990e17d3e0943772dff1b (patch)
treeb1e2c5d573b43d1b3dca86209431e03e3cb7009f /test/functional/vimscript/executable_spec.lua
parent0f86ea5ed857867f212ab7da06c25bcafcf49ca3 (diff)
downloadrneovim-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