vim-patch:8.1.0810: too many #ifdefs

Problem:    Too many #ifdefs.
Solution:   Graduate FEAT_MBYTE, part 4.
264b74fa54
This commit is contained in:
Jan Edmund Lazo
2020-11-12 02:01:07 -05:00
parent f494516ccd
commit 93c18867a0
6 changed files with 361 additions and 669 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) {