]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Newline character is not removed from the completion info popup menu text
authorYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 24 Jul 2023 16:59:40 +0000 (09:59 -0700)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 24 Jul 2023 16:59:40 +0000 (09:59 -0700)
autoload/lsp/markdown.vim

index 529c395b242b7eff8a2fe295283e79c9252b01d8..3f89a94d8400e2acc7d4d2a0be5e191f6fbbc4af 100644 (file)
@@ -420,7 +420,7 @@ def SplitLine(line: dict<any>, indent: number = 0): list<dict<any>>
     return lines
   endif
   var cur_line: dict<any> = {
-    text: line.text[: pos],
+    text: line.text[: pos - 1],
     props: []
   }
   var next_line: dict<any> = {