0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.3.1312

Problem:    Not giving correct error messages for SystemExit().
Solution:   Move E858 into an else. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2013-07-06 13:02:30 +02:00
parent bc488a76cc
commit 91aeaf4cce
2 changed files with 9 additions and 4 deletions

View File

@@ -5103,15 +5103,18 @@ run_eval(const char *cmd, typval_T *rettv
run_ret = PyRun_String((char *)cmd, Py_eval_input, globals, globals);
if (run_ret == NULL)
{
if (PyErr_ExceptionMatches(PyExc_SystemExit))
if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_SystemExit))
{
EMSG2(_(e_py_systemexit), "python");
PyErr_Clear();
}
else
{
if (PyErr_Occurred() && !msg_silent)
PyErr_PrintEx(0);
EMSG(_("E858: Eval did not return a valid python object"));
}
}
else
{
if (ConvertFromPyObject(run_ret, rettv) == -1)

View File

@@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1312,
/**/
1311,
/**/