aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKillTheMule <github@pipsfrank.de>2016-04-15 08:48:34 +0200
committerKillTheMule <KillTheMule@users.noreply.github.com>2016-04-15 20:17:07 +0200
commit1b1960ab903b6ad53f72dc2aaac9a7f93e631bfd (patch)
tree896b4dbdd826701921280ffbfcae85840951b49b /src
parentf09f6ba2e4f6474a182e82763193d8820cca95db (diff)
downloadrneovim-1b1960ab903b6ad53f72dc2aaac9a7f93e631bfd.tar.gz
rneovim-1b1960ab903b6ad53f72dc2aaac9a7f93e631bfd.tar.bz2
rneovim-1b1960ab903b6ad53f72dc2aaac9a7f93e631bfd.zip
Satisfy the linter
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_eval.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/nvim/ex_eval.c b/src/nvim/ex_eval.c
index efb031f286..6fc74c7ad0 100644
--- a/src/nvim/ex_eval.c
+++ b/src/nvim/ex_eval.c
@@ -1372,21 +1372,22 @@ void ex_catch(exarg_T *eap)
p_cpo = (char_u *)"";
// Disable error messages, it will make current exception
// invalid
- ++emsg_off;
+ emsg_off++;
regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING);
- --emsg_off;
- regmatch.rm_ic = FALSE;
- if (end != NULL)
+ emsg_off--;
+ regmatch.rm_ic = false;
+ if (end != NULL) {
*end = save_char;
+ }
p_cpo = save_cpo;
- if (regmatch.regprog == NULL)
+ if (regmatch.regprog == NULL) {
EMSG2(_(e_invarg2), pat);
- else {
- /*
- * Save the value of got_int and reset it. We don't want
- * a previous interruption cancel matching, only hitting
- * CTRL-C while matching should abort it.
- */
+ } else {
+ //
+ // Save the value of got_int and reset it. We don't want
+ // a previous interruption cancel matching, only hitting
+ // CTRL-C while matching should abort it.
+ //
prev_got_int = got_int;
got_int = FALSE;
caught = vim_regexec_nl(&regmatch, current_exception->value,