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 *)"";
|
p_cpo = (char_u *)"";
|
||||||
// Disable error messages, it will make current exception
|
// Disable error messages, it will make current exception
|
||||||
// invalid
|
// invalid
|
||||||
++emsg_off;
|
emsg_off++;
|
||||||
regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING);
|
regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING);
|
||||||
--emsg_off;
|
emsg_off--;
|
||||||
regmatch.rm_ic = FALSE;
|
regmatch.rm_ic = false;
|
||||||
if (end != NULL)
|
if (end != NULL) {
|
||||||
*end = save_char;
|
*end = save_char;
|
||||||
|
}
|
||||||
p_cpo = save_cpo;
|
p_cpo = save_cpo;
|
||||||
if (regmatch.regprog == NULL)
|
if (regmatch.regprog == NULL) {
|
||||||
EMSG2(_(e_invarg2), pat);
|
EMSG2(_(e_invarg2), pat);
|
||||||
else {
|
} else {
|
||||||
/*
|
//
|
||||||
* Save the value of got_int and reset it. We don't want
|
// Save the value of got_int and reset it. We don't want
|
||||||
* a previous interruption cancel matching, only hitting
|
// a previous interruption cancel matching, only hitting
|
||||||
* CTRL-C while matching should abort it.
|
// CTRL-C while matching should abort it.
|
||||||
*/
|
//
|
||||||
prev_got_int = got_int;
|
prev_got_int = got_int;
|
||||||
got_int = FALSE;
|
got_int = FALSE;
|
||||||
caught = vim_regexec_nl(®match, current_exception->value,
|
caught = vim_regexec_nl(®match, current_exception->value,
|
||||||
|
Loading…
Reference in New Issue
Block a user