summaryrefslogtreecommitdiffstats
path: root/src/spell.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-06 22:00:13 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-06 22:00:13 +0200
commit1614a14901558ca091329315d14a7d5e1b53aa47 (patch)
tree324ceeba0f8d5bda2f270b591a1beeed8e74125d /src/spell.c
parent524f3b19ae16e08350010b5effe38d0637349285 (diff)
patch 8.1.2120: some MB_ macros are more complicated than necessaryv8.1.2120
Problem: Some MB_ macros are more complicated than necessary. (Dominique Pelle) Solution: Simplify the macros. Expand inline.
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spell.c b/src/spell.c
index de478a3ed0..607bb392e5 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -2621,7 +2621,7 @@ spell_iswordp(
if (has_mbyte)
{
- l = MB_PTR2LEN(p);
+ l = mb_ptr2len(p);
s = p;
if (l == 1)
{