summaryrefslogtreecommitdiffstats
path: root/src/spell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/spell.c b/src/spell.c
index a778896b46..99283fc521 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -445,9 +445,8 @@ spell_check(
if (spell_iswordp(mi.mi_fend, wp))
{
do
- {
MB_PTR_ADV(mi.mi_fend);
- } while (*mi.mi_fend != NUL && spell_iswordp(mi.mi_fend, wp));
+ while (*mi.mi_fend != NUL && spell_iswordp(mi.mi_fend, wp));
if (capcol != NULL && *capcol == 0 && wp->w_s->b_cap_prog != NULL)
{
@@ -1463,9 +1462,8 @@ fold_more(matchinf_T *mip)
p = mip->mi_fend;
do
- {
MB_PTR_ADV(mip->mi_fend);
- } while (*mip->mi_fend != NUL && spell_iswordp(mip->mi_fend, mip->mi_win));
+ while (*mip->mi_fend != NUL && spell_iswordp(mip->mi_fend, mip->mi_win));
/* Include the non-word character so that we can check for the word end. */
if (*mip->mi_fend != NUL)