Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not show linebreaks in virtual text warnings #3949

Merged
merged 1 commit into from
Oct 24, 2021

Conversation

vimpostor
Copy link
Contributor

@vimpostor vimpostor commented Oct 20, 2021

This replaces all line breaks with whitespace. Before this patch, these line breaks would show up as '^@' or '^M' - depending on OS, which is kinda ugly. It is better to replace them with whitespace. This also removes trailing whitespace with trim().

Before this patch multiline warnings would appear in a single line with
'^@' as separator.
Now we use whitespace as separator to improve the appearance.

Also strip trailing whitespace, newlines, etc...

Fixes dense-analysis#3939
@vimpostor vimpostor changed the title Add support for multiline virtual text in vim Do not show linebreaks in virtual text warnings Oct 20, 2021
Copy link
Contributor

@hsanson hsanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and confirmed to work. Thanks.

@vimpostor
Copy link
Contributor Author

Looks good and confirmed to work. Thanks.

Did you forget to merge or are we waiting for another approval?

@hsanson
Copy link
Contributor

hsanson commented Oct 24, 2021

I though I merged this, thanks for the notice.

@hsanson hsanson merged commit da331ac into dense-analysis:master Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants