patch 8.1.1086: too many curly braces
Problem: Too many curly braces.
Solution: Remove curly braces where they are not needed. (Hirohito Higashi,
closes #3982)
diff --git a/src/spell.c b/src/spell.c
index a778896..99283fc 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -445,9 +445,8 @@
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 @@
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)