Mercurial > emacs
changeset 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 | bf1077a4e9ea |
children | eeafd89be966 |
files | src/xdisp.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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