Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Commit 08f702b

Browse files
authored
Remove \r in description in completion popup (prabirshrestha#694)
1 parent 2c9a2c6 commit 08f702b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/lsp/omni.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function! lsp#omni#default_get_vim_completion_item(item, ...) abort
292292
elseif type(a:item['documentation']) == type({}) &&
293293
\ has_key(a:item['documentation'], 'value')
294294
" field is MarkupContent (hopefully 'plaintext')
295-
let l:completion['info'] .= a:item['documentation']['value']
295+
let l:completion['info'] .= substitute(a:item['documentation']['value'], '\r', '', 'g')
296296
endif
297297
endif
298298

0 commit comments

Comments
 (0)