When calculating the face for boxdraw chars, protect against
diagnostics with an empty first line. Also don't inherit from
:default, which seems to mess up the background color when using
hl-line-mode.
* lisp/progmodes/flymake.el (flymake--eol-draw-fancy): Tweak
(cherry picked from commit
64eb60bd91dbeed458d5a410e6dc9ab4e9e0a10e)
for height-to-clear = 0 then ret
for i from 0
for adjust = (* i 2)
- for face = `(:inherit default
- :foreground
- ,(face-attribute
- (get-text-property 0 'face text)
- :foreground nil t))
+ for face = `(:foreground
+ ,(face-attribute
+ (or (get-text-property 0 'face text)
+ 'flymake-error)
+ :foreground nil t))
for text-beg-col = (max (- (max 30 (+ line-beg-col 5)) adjust) (+ line-beg-col 1))
for text-end-col = (max 100 (+ text-beg-col 40))
for ret = (flymake--eol-draw-fancy-1