vim-patch:8.1.0683: spell highlighting does not always end

Problem:    Spell highlighting does not always end. (Gary Johnson)
Solution:   Also reset char_attr when spell errors are highlighted.
637532b3c0
This commit is contained in:
Jan Edmund Lazo 2019-01-05 17:20:41 -05:00
parent 40f7ce96c3
commit 624f5c8be3

View File

@ -2936,8 +2936,8 @@ win_line (
break;
}
if (draw_state == WL_LINE && area_highlighting) {
/* handle Visual or match highlighting in this line */
if (draw_state == WL_LINE && (area_highlighting || has_spell)) {
// handle Visual or match highlighting in this line
if (vcol == fromcol
|| (vcol + 1 == fromcol && n_extra == 0
&& utf_ptr2cells(ptr) > 1)