_rl_accel.c: version 0.58 _sameFrag supports lineBreak
authorrgbecker
Fri, 21 Jul 2006 12:45:38 +0000
changeset 2665 1b1ff5f0c6cb
parent 2664 c9faa3a99e93
child 2666 a72c25280be2
_rl_accel.c: version 0.58 _sameFrag supports lineBreak
rl_addons/rl_accel/_rl_accel.c
--- a/rl_addons/rl_accel/_rl_accel.c	Fri Jul 21 12:44:40 2006 +0000
+++ b/rl_addons/rl_accel/_rl_accel.c	Fri Jul 21 12:45:38 2006 +0000
@@ -27,7 +27,7 @@
 #ifndef min
 #	define min(a,b) ((a)<(b)?(a):(b))
 #endif
-#define VERSION "0.57"
+#define VERSION "0.58"
 #define MODULE "_rl_accel"
 
 static PyObject *moduleVersion;
@@ -624,7 +624,8 @@
 	int	r=0, t;
 	char **p;
 	if (!PyArg_ParseTuple(args, "OO:_sameFrag", &f, &g)) return NULL;
-	if(PyObject_HasAttrString(f,"cbDefn")||PyObject_HasAttrString(g,"cbDefn")) goto L0;
+	if(PyObject_HasAttrString(f,"cbDefn")||PyObject_HasAttrString(g,"cbDefn")
+		|| PyObject_HasAttrString(f,"lineBreak")||PyObject_HasAttrString(g,"lineBreak")) goto L0;
 	for(p=names;*p;p++){
 		PyObject *fa, *ga;
 		fa = PyObject_GetAttrString(f,*p);