[Python-checkins] CVS: python/dist/src/Modules readline.c,2.42,2.43
Michael Hudson
mwh@users.sourceforge.net
Wed, 13 Feb 2002 03:58:27 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv24419
Modified Files:
readline.c
Log Message:
Simon Budig's patch (posted by me):
[ #513235 ] prevent readline filename completion
Index: readline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/readline.c,v
retrieving revision 2.42
retrieving revision 2.43
diff -C2 -d -r2.42 -r2.43
*** readline.c 12 Jan 2002 11:05:07 -0000 2.42
--- readline.c 13 Feb 2002 11:58:25 -0000 2.43
***************
*** 461,464 ****
--- 461,467 ----
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)