summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-03 21:44:40 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-03 21:44:40 +0100
commit637532b3c0ca41f0de7e90b6f3c0defe06369372 (patch)
treef7d08ad317c28c25be46b869e348c6b7f84f1789
parent196d157f12cf0476d97f78834155fc67d6b161de (diff)
patch 8.1.0683: spell highlighting does not always endv8.1.0683
Problem: Spell highlighting does not always end. (Gary Johnson) Solution: Also reset char_attr when spell errors are highlighted.
-rw-r--r--src/screen.c6
-rw-r--r--src/version.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index e0e9d3b7e2..adc62e10e7 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -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
diff --git a/src/version.c b/src/version.c
index a7bee9099c..c3379676ea 100644
--- a/src/version.c
+++ b/src/version.c
@@ -800,6 +800,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 683,
+/**/
682,
/**/
681,