From 3b0fab0e78d188a62efaf022825c9f99ff72739d Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Mon, 29 Dec 2003 07:57:00 +0000 Subject: [PATCH] (handle_auto_composed_prop): Fix setting of limit. --- src/xdisp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 8a5e101c370..d772fa28219 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3792,8 +3792,11 @@ handle_auto_composed_prop (it) /* 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)) -- 2.39.2