Skip to content

Commit

Permalink
Replace \r only when there's a detail
Browse files Browse the repository at this point in the history
  • Loading branch information
wyuenho committed Dec 21, 2024
1 parent 7dfdea3 commit e11e31c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lsp-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ The CLEANUP-FN will be called to cleanup."
(concat
(unless (and detail? (string-prefix-p " " detail?))
" ")
(s-replace "\r" "" detail?)
(when detail?
(s-replace "\r" "" detail?))
(unless (or omit-description
(and description? (string-prefix-p " " description?)))
" ")
Expand Down

0 comments on commit e11e31c

Please sign in to comment.