Kaydet (Commit) 0c1ceaf6 authored tarafından Michael W. Hudson's avatar Michael W. Hudson

Simon Budig's patch (posted by me):

[ #513235 ] prevent readline filename completion
üst 8fef47be
......@@ -460,6 +460,9 @@ on_completion(char *text, int state)
lock released! */
save_tstate = PyThreadState_Swap(NULL);
PyEval_RestoreThread(completer_tstate);
/* Don't use the default filename completion if we
* have a custom completion function... */
rl_attempted_completion_over = 1;
r = PyObject_CallFunction(completer, "si", text, state);
if (r == NULL)
goto error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment