autoload/lsp/completion.vim | 2 +- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index fe9799d02c71ef71d362ea21ab6abb4df3777588..65ad42bfdad7eb50819007858fb718693e06e574 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -90,7 +90,7 @@ endif # Get the keyword prefix before the current cursor column. var chcol = charcol('.') - var starttext = getline('.')[ : chcol - 1] + var starttext = getline('.')[ : chcol - 2] var [prefix, start_idx, end_idx] = starttext->tolower()->matchstrpos('\k*$') var start_col = start_idx + 1