mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 04:18:18 +00:00
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:
@@ -2936,8 +2936,8 @@ win_line (
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (draw_state == WL_LINE && area_highlighting) {
|
if (draw_state == WL_LINE && (area_highlighting || has_spell)) {
|
||||||
/* handle Visual or match highlighting in this line */
|
// handle Visual or match highlighting in this line
|
||||||
if (vcol == fromcol
|
if (vcol == fromcol
|
||||||
|| (vcol + 1 == fromcol && n_extra == 0
|
|| (vcol + 1 == fromcol && n_extra == 0
|
||||||
&& utf_ptr2cells(ptr) > 1)
|
&& utf_ptr2cells(ptr) > 1)
|
||||||
|
Reference in New Issue
Block a user