]> granicus.if.org Git - vim/commitdiff
patch 8.1.0683: spell highlighting does not always end v8.1.0683
authorBram Moolenaar <Bram@vim.org>
Thu, 3 Jan 2019 20:44:40 +0000 (21:44 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 3 Jan 2019 20:44:40 +0000 (21:44 +0100)
Problem:    Spell highlighting does not always end. (Gary Johnson)
Solution:   Also reset char_attr when spell errors are highlighted.

src/screen.c
src/version.c

index e0e9d3b7e2d3775aeed136b6943b61b75c292470..adc62e10e7198a910fc0119f0afa70c3f736b144 100644 (file)
@@ -4161,7 +4161,11 @@ win_line(
            break;
        }
 
-       if (draw_state == WL_LINE && area_highlighting)
+       if (draw_state == WL_LINE && (area_highlighting
+#ifdef FEAT_SPELL
+               || has_spell
+#endif
+          ))
        {
            /* handle Visual or match highlighting in this line */
            if (vcol == fromcol
index a7bee9099c5851532e2ba5026c45f94f3bbf9c7f..c3379676ea6b93f107fffc197ac0234536fdb3f2 100644 (file)
@@ -799,6 +799,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    683,
 /**/
     682,
 /**/