aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/xdisp.c7
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a120cf1b182..c8a1de49d68 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -10,6 +10,9 @@
10 10
11 * xdisp.c (adjust_window_ends): Move duplicated code to new function. 11 * xdisp.c (adjust_window_ends): Move duplicated code to new function.
12 (try_window, try_window_reusing_current_matrix, try_window_id): Use it. 12 (try_window, try_window_reusing_current_matrix, try_window_id): Use it.
13 (redisplay_window): If window_end_valid is cleared due to non-zero
14 windows_or_buffers_changed, clear current_matrix_up_to_date_p and
15 so do not call to try_cursor_movement for that window.
13 16
142013-08-14 Dmitry Antipov <dmantipov@yandex.ru> 172013-08-14 Dmitry Antipov <dmantipov@yandex.ru>
15 18
diff --git a/src/xdisp.c b/src/xdisp.c
index d2e49c76d4b..7a0c1009d83 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -15512,8 +15512,8 @@ redisplay_window (Lisp_Object window, int just_this_one_p)
15512 && !current_buffer->clip_changed 15512 && !current_buffer->clip_changed
15513 && !window_outdated (w)); 15513 && !window_outdated (w));
15514 15514
15515 /* When windows_or_buffers_changed is non-zero, we can't rely on 15515 /* When windows_or_buffers_changed is non-zero, we can't rely
15516 the window end being valid, so set it to nil there. */ 15516 on the window end being valid, so set it to zero there. */
15517 if (windows_or_buffers_changed) 15517 if (windows_or_buffers_changed)
15518 { 15518 {
15519 /* If window starts on a continuation line, maybe adjust the 15519 /* If window starts on a continuation line, maybe adjust the
@@ -15522,6 +15522,9 @@ redisplay_window (Lisp_Object window, int just_this_one_p)
15522 compute_window_start_on_continuation_line (w); 15522 compute_window_start_on_continuation_line (w);
15523 15523
15524 w->window_end_valid = 0; 15524 w->window_end_valid = 0;
15525 /* If so, we also can't rely on current matrix
15526 and should not fool try_cursor_movement below. */
15527 current_matrix_up_to_date_p = 0;
15525 } 15528 }
15526 15529
15527 /* Some sanity checks. */ 15530 /* Some sanity checks. */