diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-01-05 17:20:41 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-01-05 17:29:11 -0500 |
commit | 624f5c8be38bda72e68c424001bdeacee88bc197 (patch) | |
tree | b039fbc5846133f21d6c4b1eb4cf4e1a86ac6c5b | |
parent | 40f7ce96c32f1e19a1b432ac8f938673f917f72b (diff) | |
download | rneovim-624f5c8be38bda72e68c424001bdeacee88bc197.tar.gz rneovim-624f5c8be38bda72e68c424001bdeacee88bc197.tar.bz2 rneovim-624f5c8be38bda72e68c424001bdeacee88bc197.zip |
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
-rw-r--r-- | src/nvim/screen.c | 4 |
1 files 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) |