aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 39176e0e675..9b5762550d7 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -16800,10 +16800,14 @@ redisplay_window (Lisp_Object window, bool just_this_one_p)
16800 XBUFFER (w->contents)->text->redisplay = false; 16800 XBUFFER (w->contents)->text->redisplay = false;
16801 safe__call1 (true, Vpre_redisplay_function, Fcons (window, Qnil)); 16801 safe__call1 (true, Vpre_redisplay_function, Fcons (window, Qnil));
16802 16802
16803 if (w->redisplay || XBUFFER (w->contents)->text->redisplay) 16803 if (w->redisplay || XBUFFER (w->contents)->text->redisplay
16804 { 16804 || (EQ (Vdisplay_line_numbers, Qrelative)
16805 /* pre-redisplay-function made changes (e.g. move the region) 16805 && row != MATRIX_FIRST_TEXT_ROW (w->desired_matrix)))
16806 that require another round of redisplay. */ 16806 {
16807 /* Either pre-redisplay-function made changes (e.g. move
16808 the region), or we moved point in a window that is
16809 under display-line-numbers = relative mode. We need
16810 another round of redisplay. */
16807 clear_glyph_matrix (w->desired_matrix); 16811 clear_glyph_matrix (w->desired_matrix);
16808 if (!try_window (window, startp, 0)) 16812 if (!try_window (window, startp, 0))
16809 goto need_larger_matrices; 16813 goto need_larger_matrices;