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

Popup doesn't work when the code action has a multi-line string #20

Closed
Ciel-MC opened this issue Dec 2, 2023 · 1 comment
Closed

Popup doesn't work when the code action has a multi-line string #20

Ciel-MC opened this issue Dec 2, 2023 · 1 comment

Comments

@Ciel-MC
Copy link

Ciel-MC commented Dec 2, 2023

I looked into it a little bit and it's caused by buf_set_line not accepting multiline strings, I tried to fix it by just breaking it into multiple lines, it doesn't open an empty window then at least, but it caused more issues like incorrect formatting(italics and colors) and incorrect window size, so I gave up trying to make a trivial fix :p

@luckasRanarison
Copy link
Owner

luckasRanarison commented Dec 5, 2023

Fixed it by substituting the linebreaks to string literals, it might not look great but I couldn't find a better way to do this, the original neovim code action implementation does the same thing so...

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

No branches or pull requests

2 participants