aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2006-04-21 21:25:20 +0000
committerKim F. Storm2006-04-21 21:25:20 +0000
commitd95ebe75a0471e700cfddecb68329f9970c128c4 (patch)
tree5a71f987bfb9a40ae9c7985211d216d451cb81f8 /src
parent95797ede756b9aa12fbbd5a64949071cd428032a (diff)
downloademacs-d95ebe75a0471e700cfddecb68329f9970c128c4.tar.gz
emacs-d95ebe75a0471e700cfddecb68329f9970c128c4.zip
(redisplay_window): Fix last change. Don't recenter if
window start is at BEGV.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index b4ebd59563b..5fed86d6d8b 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -12862,7 +12862,8 @@ redisplay_window (window, just_this_one_p)
12862 /* If first window line is a continuation line, and window start 12862 /* If first window line is a continuation line, and window start
12863 is inside the modified region, but the first change is before 12863 is inside the modified region, but the first change is before
12864 current window start, we must select a new window start.*/ 12864 current window start, we must select a new window start.*/
12865 if (NILP (w->start_at_line_beg)) 12865 if (NILP (w->start_at_line_beg)
12866 && CHARPOS (startp) > BEGV)
12866 { 12867 {
12867 /* Make sure beg_unchanged and end_unchanged are up to date. 12868 /* Make sure beg_unchanged and end_unchanged are up to date.
12868 Do it only if buffer has really changed. This may or may 12869 Do it only if buffer has really changed. This may or may