From 624f5c8be38bda72e68c424001bdeacee88bc197 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 5 Jan 2019 17:20:41 -0500 Subject: 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. https://github.com/vim/vim/commit/637532b3c0ca41f0de7e90b6f3c0defe06369372 --- src/nvim/screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 528a14e83c..98b0378b18 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -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) -- cgit