# HG changeset patch # User Kenichi Handa # Date 1072684620 0 # Node ID af1655b4ee65d6041b44a049310837673022f237 # Parent dde1f8021ed6ae7a77c81ded910ae0eaf378c2ff (handle_auto_composed_prop): Fix setting of limit. diff -r dde1f8021ed6 -r af1655b4ee65 src/xdisp.c --- 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))