Merge pull request #13275 from janlazo/vim-8.1.0805

vim-patch:8.1.{805,806,809,810,811}
This commit is contained in:
Matthieu Coudron
2020-11-14 19:35:26 +01:00
committed by GitHub
27 changed files with 692 additions and 1165 deletions

View File

@@ -2960,11 +2960,7 @@ static int check_keyword_id(
char_u *const kwp = line + startcol;
int kwlen = 0;
do {
if (has_mbyte) {
kwlen += (*mb_ptr2len)(kwp + kwlen);
} else {
kwlen++;
}
kwlen += utfc_ptr2len(kwp + kwlen);
} while (vim_iswordp_buf(kwp + kwlen, syn_buf));
if (kwlen > MAXKEYWLEN) {