aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2005-07-03 16:51:02 +0000
committerRichard M. Stallman2005-07-03 16:51:02 +0000
commit9b869380e7c681b0b60f9cc5446705a03b0ad12a (patch)
tree658869cddc53992b58fc3ccbba448aa28e746718 /src
parent7ad532392bbea95055f32eb73740fef4992d8c8c (diff)
downloademacs-9b869380e7c681b0b60f9cc5446705a03b0ad12a.tar.gz
emacs-9b869380e7c681b0b60f9cc5446705a03b0ad12a.zip
(try_window): Fix previous change in how it handles
a partially-visible line or one only partly past the margin.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 40e83c7d37c..988aab3a825 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -12740,11 +12740,11 @@ try_window (window, pos, check_margins)
12740 12740
12741 if ((w->cursor.y < this_scroll_margin 12741 if ((w->cursor.y < this_scroll_margin
12742 && CHARPOS (pos) > BEGV) 12742 && CHARPOS (pos) > BEGV)
12743 /* Old redisplay didn't take scroll margin into account at the bottom, 12743 /* rms: considering make_cursor_line_fully_visible_p here
12744 but then global-hl-line-mode doesn't scroll. KFS 2004-06-14 */ 12744 seems to give wrong results. We don't want to recenter
12745 || (w->cursor.y + (make_cursor_line_fully_visible_p 12745 when the last line is partly visible, we want to allow
12746 ? cursor_height + this_scroll_margin 12746 that case to be handled in the usual way. */
12747 : 1)) > it.last_visible_y) 12747 || (w->cursor.y + 1) > it.last_visible_y)
12748 { 12748 {
12749 w->cursor.vpos = -1; 12749 w->cursor.vpos = -1;
12750 clear_glyph_matrix (w->desired_matrix); 12750 clear_glyph_matrix (w->desired_matrix);