aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-05-28 03:07:13 -0700
committerGitHub <noreply@github.com>2024-05-28 03:07:13 -0700
commit90a4b1a59cf0c204cb39ec7789ab8783626e449d (patch)
tree9210f143983c176a2387cc763fa7c9ab98e61abe /runtime/lua/vim/lsp
parent5b6477be45c54ebac4dce6bda51028542167fd1f (diff)
downloadrneovim-90a4b1a59cf0c204cb39ec7789ab8783626e449d.tar.gz
rneovim-90a4b1a59cf0c204cb39ec7789ab8783626e449d.tar.bz2
rneovim-90a4b1a59cf0c204cb39ec7789ab8783626e449d.zip
refactor: deprecate vim.region() #28416
Problem: `vim.region()` is redundant with `getregionpos()`. Solution: Deprecate `vim.region()`.
Diffstat (limited to 'runtime/lua/vim/lsp')
-rw-r--r--runtime/lua/vim/lsp/buf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua
index 49833eaeec..299b68e134 100644
--- a/runtime/lua/vim/lsp/buf.lua
+++ b/runtime/lua/vim/lsp/buf.lua
@@ -135,7 +135,7 @@ end
---@param mode "v"|"V"
---@return table {start={row,col}, end={row,col}} using (1, 0) indexing
local function range_from_selection(bufnr, mode)
- -- TODO: Use `vim.region()` instead https://github.com/neovim/neovim/pull/13896
+ -- TODO: Use `vim.fn.getregionpos()` instead.
-- [bufnum, lnum, col, off]; both row and column 1-indexed
local start = vim.fn.getpos('v')