]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Fix off-by-one error
authorYegappan Lakshmanan <yegappan@yahoo.com>
Tue, 26 Jan 2021 16:24:31 +0000 (08:24 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Tue, 26 Jan 2021 16:24:31 +0000 (08:24 -0800)
autoload/handlers.vim

index d7c01659b4d472cc3ad0444c900b4376dc86f0a5..ea760dab8f0079f9a569e4bcbc2e9233107dbae7 100644 (file)
@@ -205,7 +205,7 @@ def s:processCompletionReply(lspserver: dict<any>, req: dict<any>, reply: dict<a
     while start > 0 && line[start - 1] =~ '\k'
       start -= 1
     endwhile
-    start_col = start
+    start_col = start + 1
   endif
 
   complete(start_col, completeItems)