diff options
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 dd10551d5fa..8d977ea20fb 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -2538,7 +2538,10 @@ init_from_display_pos (it, w, pos) | |||
| 2538 | after-string. */ | 2538 | after-string. */ |
| 2539 | init_iterator (it, w, charpos, bytepos, NULL, DEFAULT_FACE_ID); | 2539 | init_iterator (it, w, charpos, bytepos, NULL, DEFAULT_FACE_ID); |
| 2540 | 2540 | ||
| 2541 | for (i = 0; i < it->n_overlay_strings; ++i) | 2541 | /* This only scans the current chunk -- it should scan all chunks. |
| 2542 | However, OVERLAY_STRING_CHUNK_SIZE has been increased from 3 in 21.1 | ||
| 2543 | to 16 in 22.1 to make this a lesser problem. */ | ||
| 2544 | for (i = 0; i < it->n_overlay_strings && i < OVERLAY_STRING_CHUNK_SIZE; ++i) | ||
| 2542 | { | 2545 | { |
| 2543 | const char *s = SDATA (it->overlay_strings[i]); | 2546 | const char *s = SDATA (it->overlay_strings[i]); |
| 2544 | const char *e = s + SBYTES (it->overlay_strings[i]); | 2547 | const char *e = s + SBYTES (it->overlay_strings[i]); |