(redisplay_window): Avoid dividing negative numbers, since the rounding effect
authorKarl Heuer <kwzh@gnu.org>
Mon, 14 Mar 1994 21:36:58 +0000 (21:36 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 14 Mar 1994 21:36:58 +0000 (21:36 +0000)
is implementation-defined.

src/xdisp.c

index 1c8158a..f9cadc1 100644 (file)
@@ -1297,7 +1297,7 @@ recenter:
   /* Forget any previously recorded base line for line number display.  */
   w->base_line_number = Qnil;
 
-  pos = *vmotion (point, - height / 2, width, hscroll, window);
+  pos = *vmotion (point, - (height / 2), width, hscroll, window);
   try_window (window, pos.bufpos);
 
   startp = marker_position (w->start);