Fix multiple lints appearing on the same line.#5094
Conversation
…eady vim-ale virtual text on that line.
It's been a while since I've thought about it, and I can't quite remember myself, but there's a reason for it. I think it has to do with how some code works out which message is the most important one to show by taking the last. That would makes sense when you have loops that are setting data and the later value naturally replaces the first one. I prefer ALE's behavior the way it is now where messages are concatenated. I might update that demo video later. The default behavior these days is to show online one message per line. |
Could we have it as an option then? |
Yeah, you can add it as an option you can turn on. Just remember to document it. I'll re-open the PR so you can work on it here. |
|
I'll paste this in every open PR: We finally managed to migrate CI checks for Windows from AppVeyor to GitHub Actions, and we've updated the minimum supported Vim version to 8.2. (Thought Vim 8.0 might happen to work for some.) In order to get checks to run again for a PR you'll need to rebase or merge. |


The ale demo video on the main page shows two lints on the same line briefly. the second lint appears on the line below the first one, instead of being concatenated.
vim9 virtualtext support was added to ale, but it was not made to put subsequent lints on following lines - instead they are concatenated to the end of the same line (and so get elided quickly).
this patch fixes it so that it matches the demo video.