diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-14 23:41:43 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-04-23 00:03:47 -0400 |
commit | bbc32fc8313bc18080a3943a8129ba5bbf7081b9 (patch) | |
tree | b636fd473b7d749f835e8824642879b3436833b2 /src/nvim/regexp.c | |
parent | 07a182c6b57e13e2563aef667131b976db8711cc (diff) | |
download | rneovim-bbc32fc8313bc18080a3943a8129ba5bbf7081b9.tar.gz rneovim-bbc32fc8313bc18080a3943a8129ba5bbf7081b9.tar.bz2 rneovim-bbc32fc8313bc18080a3943a8129ba5bbf7081b9.zip |
lint
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r-- | src/nvim/regexp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index 187609cd22..39ce7ff844 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -7224,7 +7224,8 @@ static void report_re_switch(char_u *pat) /// @param nl /// /// @return TRUE if there is a match, FALSE if not. -static int vim_regexec_string(regmatch_T *rmp, char_u *line, colnr_T col, bool nl) +static int vim_regexec_string(regmatch_T *rmp, char_u *line, colnr_T col, + bool nl) { regexec_T rex_save; bool rex_in_use_save = rex_in_use; @@ -7273,7 +7274,7 @@ static int vim_regexec_string(regmatch_T *rmp, char_u *line, colnr_T col, bool n int vim_regexec_prog(regprog_T **prog, bool ignore_case, char_u *line, colnr_T col) { - regmatch_T regmatch = {.regprog = *prog, .rm_ic = ignore_case}; + regmatch_T regmatch = { .regprog = *prog, .rm_ic = ignore_case }; int r = vim_regexec_string(®match, line, col, false); *prog = regmatch.regprog; return r; |