# HG changeset patch # User Christian Brabandt # Date 1532111405 -7200 # Node ID e78ce11f310b5c27d4065946bbbff54ba0faf3e2 # Parent ce0cc90c253ea350837ee6d74dfcae11cce13114 patch 8.1.0199: spellbadword() does not check for caps error commit https://github.com/vim/vim/commit/66ab916935585391b2efaa8e39075e1ef94717b1 Author: Bram Moolenaar Date: Fri Jul 20 20:28:48 2018 +0200 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 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -11639,6 +11639,7 @@ f_spellbadword(typval_T *argvars UNUSED, break; } str += len; + capcol -= len; } } } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -790,6 +790,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 199, +/**/ 198, /**/ 197,