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 Jan 5, 2025
1 parent 68c47b0 commit 73c6be6
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 @@ -245,7 +245,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 73c6be6

Please sign in to comment.