lsp-ui
lsp-ui copied to clipboard
When sideline + text is longer than one line, sideline pushes the text to the right
When sideline tries to render on lines where there is not enough space (maybe this is because sideline has no more lines to display on the top), sideline pushes the text to the right, causing errors like these:
You can see the code wrapped because of the sideline.
I'm not 100% sure, but it looks like it's an error when:
- The width is narrow enough that for every line, the sideline's length + code's length exceeds the buffer's width
- The sideline tries to find a line that it can display itself
- Sideline tries to display itself on line '-1' since there is no text there
- Sideline pushes the text on line 0.
I didn't debug any elisp, these are just some heuristics based on the sideline's behavior. (It may be incorrect.)
Happen to me here too:
Notice how the class
from class Dice:
is "left-shifted" to the end of the previous line.