mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
vim-patch:8.1.0810: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 4.
264b74fa54
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user