flycheck / flycheck-inline

Display Flycheck errors inline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrap long text

sandinmyjoints opened this issue · comments

When the text of a message is wider than window-body, it is cut off by the window's edge. It'd be great if the message could wrap instead!

I agree. Would you like to prepare a patch? I think the simplest solution is to add a wrap-prefix on the error message in the error list, of the appropriate width.

Wait, actually: are you reporting this for flycheck in general, or specifically for flycheck-inline?

flycheck-inline already wraps the text of an error, AFAIK. Do you have a screenshot where it doesn't?

Here's a screenshot:
Screen Shot 2019-11-20 at 10 31 47 AM

I tried closing the left window and saw that after I did that, the text is wrapped:
Screen Shot 2019-11-20 at 10 31 51 AM

I usually have two windows side by side, so wrapping in that case would be ideal!

Hmm looks like truncate-partial-width-windows kicks in in the first screenshot. Try to set that variable to a lower value, or even nil to disable its effect (and test that it is indeed the culprit!).

Ah, thanks, that was the problem. It was being set to t in a long-forgotten prog-mode-hook.