Source

vim-win32-mq / fix-python3-threads.patch

# HG changeset patch
# Parent d445f5c032c6f7e8a33eaef8b278f896531de347
diff --git a/src/if_python3.c b/src/if_python3.c
--- a/src/if_python3.c
+++ b/src/if_python3.c
@@ -734,6 +734,8 @@
 	 * as the system trace hook), will be lost between invocations of
 	 * Python code. */
 	PyEval_InitThreads();
+	/* The first python thread is vim's, release the lock. */
+	PyGILState_Release(pygilstate);
 	pygilstate = PyGILState_Ensure();
 
 #ifdef DYNAMIC_PYTHON3
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.