Skip to content

Commit

Permalink
Fix cmp_start
Browse files Browse the repository at this point in the history
  • Loading branch information
deathbeam committed Feb 20, 2024
1 parent adaf034 commit 849da9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/autocomplete/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ local function text_changed(client, bufnr)
end

local char = line:sub(col, col)
local prefix, cmp_start = unpack(vim.fn.matchstrpos(line:sub(1, col - 1), '\\k*$'))
local prefix, cmp_start = unpack(vim.fn.matchstrpos(line:sub(1, col), '\\k*$'))
prefix = M.config.server_side_filtering and '' or prefix

local context = {
Expand Down

0 comments on commit 849da9b

Please sign in to comment.