summaryrefslogtreecommitdiff
path: root/src/regexp_nfa.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/regexp_nfa.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/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c7
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);