]> git.eshelyaron.com Git - emacs.git/commitdiff
(scroll_cost): FRAME_DELETE_COST and FRAME_DELETEN_COSTS were confused. Fixed.
authorRichard M. Stallman <rms@gnu.org>
Sun, 4 Dec 1994 18:58:04 +0000 (18:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 4 Dec 1994 18:58:04 +0000 (18:58 +0000)
src/scroll.c

index d4e1a33db1c289e0d7a644a6fd3d5248bdb15f06..639f0f12628205e585f19b53a00ab10b67784cbd 100644 (file)
@@ -477,8 +477,8 @@ scroll_cost (frame, from, to, amount)
   return
     (FRAME_INSERT_COST (frame)[offset + from]
      + (amount - 1) * FRAME_INSERTN_COST (frame)[offset + from]
-     + FRAME_DELETEN_COST (frame)[offset + to]
-     + (amount - 1) * FRAME_DELETE_COST (frame)[offset + to]);
+     + FRAME_DELETE_COST (frame)[offset + to]
+     + (amount - 1) * FRAME_DELETEN_COST (frame)[offset + to]);
 }
 \f
 /* Calculate the line insertion/deletion