From 66ab916935585391b2efaa8e39075e1ef94717b1 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 20 Jul 2018 20:28:48 +0200 Subject: [PATCH] patch 8.1.0199: spellbadword() does not check for caps error Problem: spellbadword() does not check for caps error. (Dominique Pelle) Solution: Adjust capcol when advancing. --- src/evalfunc.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/evalfunc.c b/src/evalfunc.c index 2e06c2063d..bb3257119f 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -11639,6 +11639,7 @@ f_spellbadword(typval_T *argvars UNUSED, typval_T *rettv) break; } str += len; + capcol -= len; } } } diff --git a/src/version.c b/src/version.c index 691800cfdf..f5996d8bd1 100644 --- a/src/version.c +++ b/src/version.c @@ -789,6 +789,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 199, /**/ 198, /**/