Guitar
Guitar copied to clipboard
Fix long lines being word-breaked, then hidden, in TextEditorWidget
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:
This PR fixes this:
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.