changeset 64134:0fcb7f3236c9

(Frecenter): Remove superfluous settings of iarg.
author Kim F. Storm <storm@cua.dk>
date Thu, 07 Jul 2005 09:36:18 +0000
parents 7e06f331c228
children fe83c61c82da
files src/window.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Thu Jul 07 09:33:29 2005 +0000
+++ b/src/window.c	Thu Jul 07 09:36:18 2005 +0000
@@ -5453,7 +5453,6 @@
 	{
 	  struct position pos;
 
-	  iarg = XINT (arg);
 	  iarg = max (iarg, this_scroll_margin);
 
 	  pos = *vmotion (PT, -iarg, w);
@@ -5468,10 +5467,8 @@
 
       if (center_p)
 	iarg = make_number (ht / 2);
-      else if (XINT (arg) < 0)
-	iarg = XINT (arg) + ht;
-      else
-	iarg = XINT (arg);
+      else if (iarg < 0)
+	iarg += ht;
 
       /* Don't let it get into the margin at either top or bottom.  */
       iarg = max (iarg, this_scroll_margin);