diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-07 19:46:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-07 19:46:12 +0100 |
commit | 768ce2435ae956041579ef2d26e3e9d3a2444e1e (patch) | |
tree | 9ad823a034dec576edaf9552e937c6719db9fa1f /src | |
parent | ea8c219ca852cc8eaf603b1bf475edf95e2850cf (diff) | |
download | vim-768ce2435ae956041579ef2d26e3e9d3a2444e1e.zip |
patch 7.4.1282
Problem: Crash when evaluating the pattern of ":catch" causes an error.
(Dominique Pelle)
Solution: Block error messages at this point.
Diffstat (limited to 'src')
-rw-r--r-- | src/ex_eval.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c index c8e33c2ee..c68c6ad18 100644 --- a/src/ex_eval.c +++ b/src/ex_eval.c @@ -1562,7 +1562,11 @@ ex_catch(exarg_T *eap) } save_cpo = p_cpo; p_cpo = (char_u *)""; + /* Disable error messages, it will make current_exception + * invalid. */ + ++emsg_off; regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); + --emsg_off; regmatch.rm_ic = FALSE; if (end != NULL) *end = save_char; diff --git a/src/version.c b/src/version.c index f95be69e5..ffa3346a2 100644 --- a/src/version.c +++ b/src/version.c @@ -748,6 +748,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1282, +/**/ 1281, /**/ 1280, |