changeset 40287:5798240154fd

(text_property_stickiness): Fix Lisp_Object used as boolean.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 25 Oct 2001 04:19:55 +0000
parents 0e7059267f7e
children fca327b68ccc
files src/editfns.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Thu Oct 25 04:18:22 2001 +0000
+++ b/src/editfns.c	Thu Oct 25 04:19:55 2001 +0000
@@ -364,9 +364,9 @@
       prev_pos = make_number (XINT (pos) - 1);
       rear_non_sticky = Fget_text_property (prev_pos, Qrear_nonsticky, Qnil);
 
-      if (CONSP (rear_non_sticky)
-	  ? Fmemq (prop, rear_non_sticky)
-	  : !NILP (rear_non_sticky))
+      if (!NILP (CONSP (rear_non_sticky)
+		 ? Fmemq (prop, rear_non_sticky)
+		 : rear_non_sticky))
 	/* PROP is rear-non-sticky.  */
 	is_rear_sticky = 0;
     }