mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Satisfy the linter
This commit is contained in:
parent
f09f6ba2e4
commit
1b1960ab90
@ -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(®match, current_exception->value,
|
||||
|
Loading…
Reference in New Issue
Block a user