mgruner/handsome-light-syntax

Strange soft-wrapping occurs in long comments

Opened this issue · 2 comments

Hi

Thanks for this nice, light theme!

I noticed a small oddity with very long comments, that does not appear to occur with any other syntax theme I've used, so I suspect it has something to do with this one.

The following GIF probably best displays the problem:

Example

Whenever a comment becomes very long, some sort of soft-wrapping behavior occurs. This doesn't appear to happen with anything else but comments; code that is very long works fine.

The behavior when this happens is really weird; Atom believes that the code is still on the original line (and edits need to happen there), whilst it's visually offsetting the line below it.

Hello @tominventisbe. I can confirm this; it happens when you have "soft wrap" turned off in the editor, and some whitespace before the comment. It seems to be caused by the display: inline-block on the comments, but that is essential to remove the spacing between the lines. I don't know how to change this behaviour while keeping the comment lines joined together. Would you have any idea?

Thanks for taking the time to respond. I'd like to help out, but unfortunately my CSS knowledge is very limited. I'm familiar with the developer tools and I'll be happy to try out potential fixes if anyone has them, though.