summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2003-12-29 07:57:00 +0000
committerKenichi Handa <handa@m17n.org>2003-12-29 07:57:00 +0000
commit3b0fab0e78d188a62efaf022825c9f99ff72739d (patch)
tree1994583001cd2e66964cbe1cf5106feafe4cd4d7 /src
parente4106667442fa041cd08fca9af081d302ebb09a1 (diff)
downloademacs-3b0fab0e78d188a62efaf022825c9f99ff72739d.tar.gz
emacs-3b0fab0e78d188a62efaf022825c9f99ff72739d.tar.bz2
emacs-3b0fab0e78d188a62efaf022825c9f99ff72739d.zip
(handle_auto_composed_prop): Fix setting of limit.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c5
1 files changed, 4 insertions, 1 deletions
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))