changeset 99343:00ce595f8afc

(Fprevious_single_char_property_change): Return 0 when there's no change in a string. (Bug#1301)
author Martin Rudalics <rudalics@gmx.at>
date Mon, 03 Nov 2008 17:31:22 +0000
parents 4c23c7ddb156
children 9493a88c2889
files src/textprop.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/textprop.c	Mon Nov 03 06:05:36 2008 +0000
+++ b/src/textprop.c	Mon Nov 03 17:31:22 2008 +0000
@@ -883,7 +883,7 @@
       if (NILP (position))
 	{
 	  if (NILP (limit))
-	    position = make_number (SCHARS (object));
+	    position = make_number (0);
 	  else
 	    {
 	      CHECK_NUMBER (limit);