diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-11-14 19:35:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-14 19:35:26 +0100 |
commit | 27d630926cab78511075159012ce6ac920d8747e (patch) | |
tree | db9afbe90762056b2f2c538744ce04d571108b89 /src/nvim/syntax.c | |
parent | d8c69adbabe963142f433a2ddad172ff46413f15 (diff) | |
parent | 5d6ecfa3c7447009da75842c611ea1b9f1db83e7 (diff) | |
download | rneovim-27d630926cab78511075159012ce6ac920d8747e.tar.gz rneovim-27d630926cab78511075159012ce6ac920d8747e.tar.bz2 rneovim-27d630926cab78511075159012ce6ac920d8747e.zip |
Merge pull request #13275 from janlazo/vim-8.1.0805
vim-patch:8.1.{805,806,809,810,811}
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 5ce126a593..2e593e39de 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -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) { |