Skip to content

Commit 43aa701

Browse files
committed
Replace \r only when there's a detail
1 parent e288032 commit 43aa701

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-completion.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ The CLEANUP-FN will be called to cleanup."
245245
(concat
246246
(unless (and detail? (string-prefix-p " " detail?))
247247
" ")
248-
(s-replace "\r" "" detail?)
248+
(when detail?
249+
(s-replace "\r" "" detail?))
249250
(unless (or omit-description
250251
(and description? (string-prefix-p " " description?)))
251252
" ")

0 commit comments

Comments
 (0)