Mercurial > emacs
comparison src/xdisp.c @ 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 | d563d35e3d58 |
children | 90509a3fb47f |
comparison
equal
deleted
inserted
replaced
89690:dde1f8021ed6 | 89691:af1655b4ee65 |
---|---|
3790 { | 3790 { |
3791 Lisp_Object limit = Qnil, next; | 3791 Lisp_Object limit = Qnil, next; |
3792 | 3792 |
3793 /* As Fnext_single_char_property_change is very slow, we | 3793 /* As Fnext_single_char_property_change is very slow, we |
3794 limit the search to the current line. */ | 3794 limit the search to the current line. */ |
3795 if (! STRINGP (it->string)) | 3795 if (STRINGP (it->string)) |
3796 limit = SCHARS (it->string); | |
3797 else | |
3796 limit = make_number (find_next_newline_no_quit (pos, 1)); | 3798 limit = make_number (find_next_newline_no_quit (pos, 1)); |
3799 | |
3797 next = (Fnext_single_property_change | 3800 next = (Fnext_single_property_change |
3798 (make_number (pos), Qauto_composed, it->string, limit)); | 3801 (make_number (pos), Qauto_composed, it->string, limit)); |
3799 if (XINT (next) < XINT (limit)) | 3802 if (XINT (next) < XINT (limit)) |
3800 { | 3803 { |
3801 /* The current point is auto-composed, but there exist | 3804 /* The current point is auto-composed, but there exist |