aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/sync.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-08-26 15:31:16 +0200
committerChristian Clason <ch.clason+github@icloud.com>2025-08-28 11:34:01 +0200
commitc10e36fc016cb265026a772571ce0a405df2ab71 (patch)
tree2918f8f85fbd9595eb55af33033acde417d415d2 /runtime/lua/vim/lsp/sync.lua
parenta33284c2c068a9204330bc941e274b1f5bd9f5c6 (diff)
downloadrneovim-c10e36fc016cb265026a772571ce0a405df2ab71.tar.gz
rneovim-c10e36fc016cb265026a772571ce0a405df2ab71.tar.bz2
rneovim-c10e36fc016cb265026a772571ce0a405df2ab71.zip
refactor(lua): consistent use of local aliases
Diffstat (limited to 'runtime/lua/vim/lsp/sync.lua')
-rw-r--r--runtime/lua/vim/lsp/sync.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/sync.lua b/runtime/lua/vim/lsp/sync.lua
index a7c688ee89..36a94d5fba 100644
--- a/runtime/lua/vim/lsp/sync.lua
+++ b/runtime/lua/vim/lsp/sync.lua
@@ -159,7 +159,7 @@ local function compute_start_range(
else
byte_idx = start_byte_idx + str_utf_start(prev_line, start_byte_idx)
--- Convert to 0 based for input, and from 0 based for output
- char_idx = vim.str_utfindex(prev_line, position_encoding, byte_idx - 1) + 1
+ char_idx = str_utfindex(prev_line, position_encoding, byte_idx - 1) + 1
end
-- Return the start difference (shared for new and prev lines)