diff options
| author | Kenichi Handa | 2003-12-29 07:57:00 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-12-29 07:57:00 +0000 |
| commit | 3b0fab0e78d188a62efaf022825c9f99ff72739d (patch) | |
| tree | 1994583001cd2e66964cbe1cf5106feafe4cd4d7 /src | |
| parent | e4106667442fa041cd08fca9af081d302ebb09a1 (diff) | |
| download | emacs-3b0fab0e78d188a62efaf022825c9f99ff72739d.tar.gz emacs-3b0fab0e78d188a62efaf022825c9f99ff72739d.zip | |
(handle_auto_composed_prop): Fix setting of limit.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 5 |
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) | |||
| 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)) |