diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index d191ef51700..2af6144975a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -22682,10 +22682,11 @@ display_count_lines_visually (struct it *it) | |||
| 22682 | SET_TEXT_POS (from, PT, PT_BYTE); | 22682 | SET_TEXT_POS (from, PT, PT_BYTE); |
| 22683 | to = IT_CHARPOS (*it); | 22683 | to = IT_CHARPOS (*it); |
| 22684 | } | 22684 | } |
| 22685 | start_display (&tem_it, it->w, from); | ||
| 22686 | /* Need to disable visual mode temporarily, since otherwise the | 22685 | /* Need to disable visual mode temporarily, since otherwise the |
| 22687 | call to move_it_to will cause infinite recursion. */ | 22686 | call to move_it_to below and inside start_display will cause |
| 22687 | infinite recursion. */ | ||
| 22688 | specbind (Qdisplay_line_numbers, Qrelative); | 22688 | specbind (Qdisplay_line_numbers, Qrelative); |
| 22689 | start_display (&tem_it, it->w, from); | ||
| 22689 | /* Some redisplay optimizations could invoke us very far from | 22690 | /* Some redisplay optimizations could invoke us very far from |
| 22690 | PT, which will make the caller painfully slow. There should | 22691 | PT, which will make the caller painfully slow. There should |
| 22691 | be no need to go too far beyond the window's bottom, as any | 22692 | be no need to go too far beyond the window's bottom, as any |