Skip to content

How to change the display of newline character in candidates ? #1206

Answered by dgutov
karta0807913 asked this question in Q&A
Discussion options

You must be logged in to vote

Second: company-mode does not support non-printable characters in completion strings, including newlines. There is no good way to show them in the popup. Hence the character ? that replaces them.

Instead of trying to use a display property (this will not work; display is used for rendering the overlay popup, the property is overridden), return modified strings which do not contain any unsupported characters.

You can add some text property on each strings which would store the original, and then use those values in post-completion to insert the full string.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@karta0807913
Comment options

Comment options

You must be logged in to vote
3 replies
@karta0807913
Comment options

@dgutov
Comment options

@karta0807913
Comment options

Answer selected by karta0807913
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants