From: Bram Moolenaar Date: Fri, 20 Jul 2018 18:28:48 +0000 (+0200) Subject: patch 8.1.0199: spellbadword() does not check for caps error X-Git-Tag: v8.1.0199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66ab916935585391b2efaa8e39075e1ef94717b1;p=vim 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. --- diff --git a/src/evalfunc.c b/src/evalfunc.c index 2e06c2063..bb3257119 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 691800cfd..f5996d8bd 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, /**/