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.
This commit is contained in:
Bram Moolenaar
2018-07-20 20:28:48 +02:00
parent 0a6efcd27d
commit 66ab916935
2 changed files with 3 additions and 0 deletions

View File

@ -11639,6 +11639,7 @@ f_spellbadword(typval_T *argvars UNUSED, typval_T *rettv)
break;
}
str += len;
capcol -= len;
}
}
}

View File

@ -789,6 +789,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
199,
/**/
198,
/**/