From: Richard M. Stallman Date: Sun, 4 Dec 1994 18:58:04 +0000 (+0000) Subject: (scroll_cost): FRAME_DELETE_COST and FRAME_DELETEN_COSTS were confused. Fixed. X-Git-Tag: emacs-19.34~5746 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=00eb4c4abc907998ecb60cb5fb1b5fc770c6fa41;p=emacs.git (scroll_cost): FRAME_DELETE_COST and FRAME_DELETEN_COSTS were confused. Fixed. --- diff --git a/src/scroll.c b/src/scroll.c index d4e1a33db1c..639f0f12628 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -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]); } /* Calculate the line insertion/deletion