From c10e36fc016cb265026a772571ce0a405df2ab71 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Tue, 26 Aug 2025 15:31:16 +0200 Subject: refactor(lua): consistent use of local aliases --- runtime/lua/vim/lsp/sync.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/lsp/sync.lua') 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) -- cgit