diff options
| author | bfredl <bjorn.linse@gmail.com> | 2022-05-16 14:24:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-16 14:24:29 +0200 |
| commit | b9b5577d6d8e07d1e39020c8fc05f817f2e81c66 (patch) | |
| tree | 0d4b5f8b4db1ad7b4cd6d93c89d149e9e2d84570 /src/nvim/ex_eval.c | |
| parent | 14d653b421d3ee4e0d641e45e67dafe43809e502 (diff) | |
| parent | f0148de7907ec297647816d51c79745be729439e (diff) | |
| download | rneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.tar.gz rneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.tar.bz2 rneovim-b9b5577d6d8e07d1e39020c8fc05f817f2e81c66.zip | |
Merge pull request #18578 from dundargoc/refactor/remove-char_u
refactor: remove char_u
Diffstat (limited to 'src/nvim/ex_eval.c')
| -rw-r--r-- | src/nvim/ex_eval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ex_eval.c b/src/nvim/ex_eval.c index 46f3a31120..fa70f762a2 100644 --- a/src/nvim/ex_eval.c +++ b/src/nvim/ex_eval.c @@ -1361,18 +1361,18 @@ void ex_catch(exarg_T *eap) save_char = *end; *end = NUL; } - save_cpo = (char *)p_cpo; - p_cpo = (char_u *)""; + save_cpo = p_cpo; + p_cpo = ""; // Disable error messages, it will make current exception // invalid emsg_off++; - regmatch.regprog = vim_regcomp((char_u *)pat, RE_MAGIC + RE_STRING); + regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); emsg_off--; regmatch.rm_ic = false; if (end != NULL) { *end = save_char; } - p_cpo = (char_u *)save_cpo; + p_cpo = save_cpo; if (regmatch.regprog == NULL) { semsg(_(e_invarg2), pat); } else { |
