changeset 89691:af1655b4ee65

(handle_auto_composed_prop): Fix setting of limit.
author Kenichi Handa <handa@m17n.org>
date Mon, 29 Dec 2003 07:57:00 +0000
parents dde1f8021ed6
children 9ff7a41a549a
files src/xdisp.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Mon Dec 29 07:53:55 2003 +0000
+++ b/src/xdisp.c	Mon Dec 29 07:57:00 2003 +0000
@@ -3792,8 +3792,11 @@
 	  
 	  /* As Fnext_single_char_property_change is very slow, we
 	     limit the search to the current line.  */
-	  if (! STRINGP (it->string))
+	  if (STRINGP (it->string))
+	    limit = SCHARS (it->string);
+	  else
 	    limit = make_number (find_next_newline_no_quit (pos, 1));
+
 	  next = (Fnext_single_property_change
 		     (make_number (pos), Qauto_composed, it->string, limit));
 	  if (XINT (next) < XINT (limit))