diff options
| author | Eli Zaretskii | 2011-12-10 21:54:45 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-12-10 21:54:45 +0200 |
| commit | b73189c64fa97828b5525f24d0c784a050487eb7 (patch) | |
| tree | 2d8a24d06693a660b9328b9dcfc7eb22ad5e9446 /src | |
| parent | 83faebb47adacec7645d86d7ec511bfa5bb6bbdc (diff) | |
| download | emacs-b73189c64fa97828b5525f24d0c784a050487eb7.tar.gz emacs-b73189c64fa97828b5525f24d0c784a050487eb7.zip | |
Fix bug #10263 with assertion violation using telugu-itrans input method.
src/xdisp.c (RECORD_MAX_MIN_POS): Use IT->cmp_it.charpos only if
IT->string is nil.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2e1a3b19b1d..94db6c68605 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-12-10 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (RECORD_MAX_MIN_POS): Use IT->cmp_it.charpos only if | ||
| 4 | IT->string is nil. (Bug#10263) | ||
| 5 | |||
| 1 | 2011-12-10 Jan Djärv <jan.h.d@swipnet.se> | 6 | 2011-12-10 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 3 | * nsterm.h (x_free_frame_resources): Declare. | 8 | * nsterm.h (x_free_frame_resources): Declare. |
diff --git a/src/xdisp.c b/src/xdisp.c index 87bbded9208..41d393a65a7 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -18887,7 +18887,8 @@ display_line (struct it *it) | |||
| 18887 | #define RECORD_MAX_MIN_POS(IT) \ | 18887 | #define RECORD_MAX_MIN_POS(IT) \ |
| 18888 | do \ | 18888 | do \ |
| 18889 | { \ | 18889 | { \ |
| 18890 | int composition_p = (IT)->what == IT_COMPOSITION; \ | 18890 | int composition_p = !STRINGP ((IT)->string) \ |
| 18891 | && ((IT)->what == IT_COMPOSITION); \ | ||
| 18891 | EMACS_INT current_pos = \ | 18892 | EMACS_INT current_pos = \ |
| 18892 | composition_p ? (IT)->cmp_it.charpos \ | 18893 | composition_p ? (IT)->cmp_it.charpos \ |
| 18893 | : IT_CHARPOS (*(IT)); \ | 18894 | : IT_CHARPOS (*(IT)); \ |