diff options
| author | Kenichi Handa | 2010-02-25 11:29:35 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-02-25 11:29:35 +0900 |
| commit | cc6c7c75bbd87892ff3f956c75f5494d58f3fc33 (patch) | |
| tree | e2a714e1ed6cb8ef6ab80d793c6a492858135408 /src | |
| parent | 0ca10bb75f679d96560cd7909d47882a08d14cb5 (diff) | |
| download | emacs-cc6c7c75bbd87892ff3f956c75f5494d58f3fc33.tar.gz emacs-cc6c7c75bbd87892ff3f956c75f5494d58f3fc33.zip | |
xdisp.c (reseat_to_string): Fix previous change (bug#5609).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 542a0781783..0b67340c1fd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-02-25 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * xdisp.c (reseat_to_string): Fix previous change (bug#5609). | ||
| 4 | |||
| 1 | 2010-02-24 Jan Djärv <jan.h.d@swipnet.se> | 5 | 2010-02-24 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * xterm.c (XTflash): Move declarations before statements. | 7 | * xterm.c (XTflash): Move declarations before statements. |
diff --git a/src/xdisp.c b/src/xdisp.c index 8e356224c8a..1a078edd074 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -5610,8 +5610,13 @@ reseat_to_string (it, s, string, charpos, precision, field_width, multibyte) | |||
| 5610 | 5610 | ||
| 5611 | it->stop_charpos = charpos; | 5611 | it->stop_charpos = charpos; |
| 5612 | if (s == NULL && it->multibyte_p) | 5612 | if (s == NULL && it->multibyte_p) |
| 5613 | composition_compute_stop_pos (&it->cmp_it, charpos, -1, it->end_charpos, | 5613 | { |
| 5614 | it->string); | 5614 | EMACS_INT endpos = charpos + SCHARS (it->string); |
| 5615 | if (endpos > it->end_charpos) | ||
| 5616 | endpos = it->end_charpos; | ||
| 5617 | composition_compute_stop_pos (&it->cmp_it, charpos, -1, endpos, | ||
| 5618 | it->string); | ||
| 5619 | } | ||
| 5615 | CHECK_IT (it); | 5620 | CHECK_IT (it); |
| 5616 | } | 5621 | } |
| 5617 | 5622 | ||