aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2008-08-05 22:45:50 +0000
committerChong Yidong2008-08-05 22:45:50 +0000
commit8d4434db3201138cde372683aecea5732ed72460 (patch)
tree0fcad0183d8a14de31a5ac079503cba2b6e285af /src
parent012fd6f4d062bc43d93c25ff440fe23ba074ebe0 (diff)
downloademacs-8d4434db3201138cde372683aecea5732ed72460.tar.gz
emacs-8d4434db3201138cde372683aecea5732ed72460.zip
(redisplay_window): Don't enforce scroll-margin when forcing a window
start.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index bc6545b5fd8..78f2dd6478c 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -13484,7 +13484,6 @@ redisplay_window (window, just_this_one_p)
13484 { 13484 {
13485 /* We set this later on if we have to adjust point. */ 13485 /* We set this later on if we have to adjust point. */
13486 int new_vpos = -1; 13486 int new_vpos = -1;
13487 int val;
13488 13487
13489 w->force_start = Qnil; 13488 w->force_start = Qnil;
13490 w->vscroll = 0; 13489 w->vscroll = 0;
@@ -13518,16 +13517,15 @@ redisplay_window (window, just_this_one_p)
13518 13517
13519 /* Redisplay, then check if cursor has been set during the 13518 /* Redisplay, then check if cursor has been set during the
13520 redisplay. Give up if new fonts were loaded. */ 13519 redisplay. Give up if new fonts were loaded. */
13521 val = try_window (window, startp, 1); 13520 /* We used to issue a CHECK_MARGINS argument to try_window here,
13522 if (!val) 13521 but this causes scrolling to fail when point begins inside
13522 the scroll margin (bug#148) -- cyd */
13523 if (!try_window (window, startp, 0))
13523 { 13524 {
13524 w->force_start = Qt; 13525 w->force_start = Qt;
13525 clear_glyph_matrix (w->desired_matrix); 13526 clear_glyph_matrix (w->desired_matrix);
13526 goto need_larger_matrices; 13527 goto need_larger_matrices;
13527 } 13528 }
13528 /* Point was outside the scroll margins. */
13529 if (val < 0)
13530 new_vpos = window_box_height (w) / 2;
13531 13529
13532 if (w->cursor.vpos < 0 && !w->frozen_window_start_p) 13530 if (w->cursor.vpos < 0 && !w->frozen_window_start_p)
13533 { 13531 {