diff options
Diffstat (limited to 'src/xdisp.c')
| -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 294ee2a1334..5b373a2b4fd 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -3595,8 +3595,9 @@ get_overlay_strings (it) | |||
| 3595 | /* Set up IT to deliver display elements from the first overlay | 3595 | /* Set up IT to deliver display elements from the first overlay |
| 3596 | string. */ | 3596 | string. */ |
| 3597 | IT_STRING_CHARPOS (*it) = IT_STRING_BYTEPOS (*it) = 0; | 3597 | IT_STRING_CHARPOS (*it) = IT_STRING_BYTEPOS (*it) = 0; |
| 3598 | it->stop_charpos = 0; | ||
| 3599 | it->string = it->overlay_strings[0]; | 3598 | it->string = it->overlay_strings[0]; |
| 3599 | it->stop_charpos = 0; | ||
| 3600 | it->end_charpos = XSTRING (it->string)->size; | ||
| 3600 | it->multibyte_p = STRING_MULTIBYTE (it->string); | 3601 | it->multibyte_p = STRING_MULTIBYTE (it->string); |
| 3601 | xassert (STRINGP (it->string)); | 3602 | xassert (STRINGP (it->string)); |
| 3602 | it->method = next_element_from_string; | 3603 | it->method = next_element_from_string; |
| @@ -4375,6 +4376,8 @@ set_iterator_to_next (it, reseat_p) | |||
| 4375 | pop_it (it); | 4376 | pop_it (it); |
| 4376 | if (!STRINGP (it->string)) | 4377 | if (!STRINGP (it->string)) |
| 4377 | it->method = next_element_from_buffer; | 4378 | it->method = next_element_from_buffer; |
| 4379 | else | ||
| 4380 | goto consider_string_end; | ||
| 4378 | } | 4381 | } |
| 4379 | } | 4382 | } |
| 4380 | } | 4383 | } |