summaryrefslogtreecommitdiff
path: root/src/spell.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-03-30 18:47:01 +0100
committerBram Moolenaar <Bram@vim.org>2019-03-30 18:47:01 +0100
commitabab0b0fdd6535969447b03a4fffc1947918cf6c (patch)
tree2d43537a5dce8433ef2b2a37684c9e069392c592 /src/spell.c
parentbd9bf266fccbf7b7f09e476e09b61f0133e914db (diff)
downloadvim-git-abab0b0fdd6535969447b03a4fffc1947918cf6c.tar.gz
patch 8.1.1086: too many curly bracesv8.1.1086
Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
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 a778896b4..99283fc52 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)