comparison src/xdisp.c @ 70174:94fddd0892cb

(redisplay_window): Fix last change. Don't recenter if window start is at BEGV.
author Kim F. Storm <storm@cua.dk>
date Fri, 21 Apr 2006 21:25:20 +0000
parents 9c0686770e87
children 4a716172f505
comparison
equal deleted inserted replaced
70173:bf1077a4e9ea 70174:94fddd0892cb
12860 { 12860 {
12861 12861
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
12869 not have been done by try_window_id (see which) already. */ 12870 not have been done by try_window_id (see which) already. */
12870 if (MODIFF > SAVE_MODIFF 12871 if (MODIFF > SAVE_MODIFF