aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 025161cc395..95f7039eaf7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-12-05 Chong Yidong <cyd@stupidchicken.com>
2
3 * xdisp.c (try_scrolling): Avoid infloop if the first line is
4 obscured due to a vscroll (Bug#7537).
5
12010-12-02 Jan Djärv <jhd@zeplinf.localdomain> 62010-12-02 Jan Djärv <jhd@zeplinf.localdomain>
2 7
3 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT. 8 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
diff --git a/src/xdisp.c b/src/xdisp.c
index a416c8ff435..dbe3e443c67 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -12759,7 +12759,11 @@ try_scrolling (window, just_this_one_p, scroll_conservatively,
12759 12759
12760 /* If cursor ends up on a partially visible line, 12760 /* If cursor ends up on a partially visible line,
12761 treat that as being off the bottom of the screen. */ 12761 treat that as being off the bottom of the screen. */
12762 if (! cursor_row_fully_visible_p (w, extra_scroll_margin_lines <= 1, 0)) 12762 if (! cursor_row_fully_visible_p (w, extra_scroll_margin_lines <= 1, 0)
12763 /* It's possible that the cursor is on the first line of the
12764 buffer, which is partially obscured due to a vscroll
12765 (Bug#7537). In that case, avoid looping forever . */
12766 && extra_scroll_margin_lines < w->desired_matrix->nrows - 1)
12763 { 12767 {
12764 clear_glyph_matrix (w->desired_matrix); 12768 clear_glyph_matrix (w->desired_matrix);
12765 ++extra_scroll_margin_lines; 12769 ++extra_scroll_margin_lines;