GNOME Bugzilla – Bug 791303
Display glitches around hidden underline
Last modified: 2017-12-16 22:32:47 UTC
Created attachment 365098 [details] Test case cat the attached file. Notice the incorrect display where "underline" and "hidden" modes meet. Highlighting with mouse randomly fixes / breaks it again.
Confirmed. Striketrough (last line) also has the same issue.
I'm planning to fix it tonight.
A boiled-down test case: echo -e '\e[4m \e[8m \e[28m \e[24m' Reminds me of bug 707221.
Created attachment 365163 [details] [review] Fix (?) This fixes the bug for me. The comment is pretty bad, I should rephrase it. This part of the code is not about rendering, but about finding a continuous run of identical attributes. I don't understand why this patch on its own fixes the bug :-) A few lines below there's a code like this for pretty much all attributes: nunderline = cell->attr.underline; if (nunderline != underline) { break; } I'll add one for the invisible attribute too, I'll feel good about this patch then.
Created attachment 365611 [details] [review] Fix, v2 Let's submit this one :)
Comment on attachment 365611 [details] [review] Fix, v2 Looks good.
Fixed.