comparison src/ex_eval.c @ 7973:00344cd730f6 v7.4.1282

commit https://github.com/vim/vim/commit/768ce2435ae956041579ef2d26e3e9d3a2444e1e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 7 19:46:12 2016 +0100 patch 7.4.1282 Problem: Crash when evaluating the pattern of ":catch" causes an error. (Dominique Pelle) Solution: Block error messages at this point.
author Christian Brabandt <cb@256bit.org>
date Sun, 07 Feb 2016 20:00:04 +0100
parents f86adafb28d4
children 89f38c77e11e
comparison
equal deleted inserted replaced
7972:629c08a7eaff 7973:00344cd730f6
1560 save_char = *end; 1560 save_char = *end;
1561 *end = NUL; 1561 *end = NUL;
1562 } 1562 }
1563 save_cpo = p_cpo; 1563 save_cpo = p_cpo;
1564 p_cpo = (char_u *)""; 1564 p_cpo = (char_u *)"";
1565 /* Disable error messages, it will make current_exception
1566 * invalid. */
1567 ++emsg_off;
1565 regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); 1568 regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING);
1569 --emsg_off;
1566 regmatch.rm_ic = FALSE; 1570 regmatch.rm_ic = FALSE;
1567 if (end != NULL) 1571 if (end != NULL)
1568 *end = save_char; 1572 *end = save_char;
1569 p_cpo = save_cpo; 1573 p_cpo = save_cpo;
1570 if (regmatch.regprog == NULL) 1574 if (regmatch.regprog == NULL)