1
0
forked from aniani/vim

updated for version 7.0158

This commit is contained in:
Bram Moolenaar
2005-11-23 21:25:05 +00:00
parent af289d333a
commit a5792f5890
90 changed files with 9703 additions and 4368 deletions

View File

@@ -436,6 +436,14 @@ static void Python_Release_Vim(void)
void
python_end()
{
static int recurse = 0;
/* If a crash occurs while doing this, don't try again. */
if (recurse != 0)
return;
++recurse;
#ifdef DYNAMIC_PYTHON
if (hinstPython && Py_IsInitialized())
{
@@ -450,6 +458,8 @@ python_end()
Py_Finalize();
}
#endif
--recurse;
}
static int