# HG changeset patch # User Kim F. Storm # Date 1145654720 0 # Node ID 94fddd0892cb6396d63225b7241ad6aedd434100 # Parent bf1077a4e9ea0d93a4b3c499e10dc92e1f1b2fce (redisplay_window): Fix last change. Don't recenter if window start is at BEGV. diff -r bf1077a4e9ea -r 94fddd0892cb src/xdisp.c --- a/src/xdisp.c Fri Apr 21 21:25:09 2006 +0000 +++ b/src/xdisp.c Fri Apr 21 21:25:20 2006 +0000 @@ -12862,7 +12862,8 @@ /* If first window line is a continuation line, and window start is inside the modified region, but the first change is before current window start, we must select a new window start.*/ - if (NILP (w->start_at_line_beg)) + if (NILP (w->start_at_line_beg) + && CHARPOS (startp) > BEGV) { /* Make sure beg_unchanged and end_unchanged are up to date. Do it only if buffer has really changed. This may or may