From: Kim F. Storm Date: Thu, 20 Apr 2006 08:46:56 +0000 (+0000) Subject: * xdisp.c (redisplay_window): Fix last change. X-Git-Tag: emacs-pretest-22.0.90~3040 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=60923c42fbb55e90ee61328af7aeb407219a978a;p=emacs.git * xdisp.c (redisplay_window): Fix last change. --- diff --git a/src/xdisp.c b/src/xdisp.c index db987ad5a90..5e6d5277a2b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -12689,8 +12689,6 @@ redisplay_window (window, just_this_one_p) /* IT may overshoot PT if text at PT is invisible. */ else if (IT_CHARPOS (it) > PT && CHARPOS (startp) <= PT) w->force_start = Qt; - - } /* Handle case where place to start displaying has been specified, @@ -12882,7 +12880,9 @@ redisplay_window (window, just_this_one_p) if (CHARPOS (startp) > BEG + BEG_UNCHANGED && CHARPOS (startp) <= Z - END_UNCHANGED) { - centering_position = 0; + /* There doesn't seems to be a simple way to find a new + window start that is near the old window start, so + we just recenter. */ goto recenter; } }