diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c index afb8f75537b..c8fcb3a607f 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -6575,9 +6575,12 @@ and redisplay normally--don't erase and redraw the frame. */) | |||
| 6575 | in case scroll_margin is buffer-local. */ | 6575 | in case scroll_margin is buffer-local. */ |
| 6576 | this_scroll_margin = window_scroll_margin (w, MARGIN_IN_LINES); | 6576 | this_scroll_margin = window_scroll_margin (w, MARGIN_IN_LINES); |
| 6577 | 6577 | ||
| 6578 | /* Don't use redisplay code for initial frames, as the necessary | 6578 | /* Don't use the display code for initial frames, as the necessary |
| 6579 | data structures might not be set up yet then. */ | 6579 | data structures might not be set up yet then. Also don't use it |
| 6580 | if (!FRAME_INITIAL_P (XFRAME (w->frame))) | 6580 | for buffers with very long lines, as it tremdously slows down |
| 6581 | redisplay, especially when lines are truncated. */ | ||
| 6582 | if (!FRAME_INITIAL_P (XFRAME (w->frame)) | ||
| 6583 | && !current_buffer->long_line_optimizations_p) | ||
| 6581 | { | 6584 | { |
| 6582 | specpdl_ref count = SPECPDL_INDEX (); | 6585 | specpdl_ref count = SPECPDL_INDEX (); |
| 6583 | 6586 | ||