diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-30 18:47:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-30 18:47:01 +0100 |
commit | abab0b0fdd6535969447b03a4fffc1947918cf6c (patch) | |
tree | 2d43537a5dce8433ef2b2a37684c9e069392c592 /src/regexp_nfa.c | |
parent | bd9bf266fccbf7b7f09e476e09b61f0133e914db (diff) | |
download | vim-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/regexp_nfa.c')
-rw-r--r-- | src/regexp_nfa.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 1e1063598..af7994c70 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -1790,8 +1790,7 @@ collection: if (*regparse == 'n') startc = (reg_string || emit_range || regparse[1] == '-') ? NL : NFA_NEWL; - else - if (*regparse == 'd' + else if (*regparse == 'd' || *regparse == 'o' || *regparse == 'x' || *regparse == 'u' @@ -2919,14 +2918,10 @@ st_error(int *postfix UNUSED, int *end UNUSED, int *p UNUSED) } # else for (p2 = postfix; p2 < end; p2++) - { fprintf(df, "%d, ", *p2); - } fprintf(df, "\nCurrent position is: "); for (p2 = postfix; p2 <= p; p2 ++) - { fprintf(df, "%d, ", *p2); - } # endif fprintf(df, "\n--------------------------\n"); fclose(df); |