Guitar icon indicating copy to clipboard operation
Guitar copied to clipboard

Fix long lines being word-breaked, then hidden, in TextEditorWidget

Open gbl opened this issue 2 years ago • 0 comments

The version of Guitar that I'm using (which is the one from my last PR, but the current continuous version has the same problem) omits the last word from lines that are longer than what the diff window can show:

image

This PR fixes this:

image

It seems like the default flags of the QPainter try to word wrap the long line, then the clip rectangle kicks in and removes the second line.

I've seen you worked a lot on the text editor, so the problem may not exist in the current version, but as the latest continous version still has the bug, I decided to make a PR anyway. Feel free to ignore if it doesn't fit into your development.

gbl avatar Jun 23 '22 11:06 gbl