Mercurial > vim
comparison src/spell.c @ 18251:c8a53c0daeed v8.1.2120
patch 8.1.2120: some MB_ macros are more complicated than necessary
Commit: https://github.com/vim/vim/commit/1614a14901558ca091329315d14a7d5e1b53aa47
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 6 22:00:13 2019 +0200
patch 8.1.2120: some MB_ macros are more complicated than necessary
Problem: Some MB_ macros are more complicated than necessary. (Dominique
Pelle)
Solution: Simplify the macros. Expand inline.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Oct 2019 22:15:04 +0200 |
parents | 6e53d83e021d |
children | f4db8631d9c5 |
comparison
equal
deleted
inserted
replaced
18250:f1d9d3f76c98 | 18251:c8a53c0daeed |
---|---|
2619 int l; | 2619 int l; |
2620 int c; | 2620 int c; |
2621 | 2621 |
2622 if (has_mbyte) | 2622 if (has_mbyte) |
2623 { | 2623 { |
2624 l = MB_PTR2LEN(p); | 2624 l = mb_ptr2len(p); |
2625 s = p; | 2625 s = p; |
2626 if (l == 1) | 2626 if (l == 1) |
2627 { | 2627 { |
2628 /* be quick for ASCII */ | 2628 /* be quick for ASCII */ |
2629 if (wp->w_s->b_spell_ismw[*p]) | 2629 if (wp->w_s->b_spell_ismw[*p]) |