summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2005-07-07 09:36:18 +0000
committerKim F. Storm <storm@cua.dk>2005-07-07 09:36:18 +0000
commitf567c4887025a9df6bc2448f3de7427eddd3219e (patch)
treeade8309e4cee44bd28d1926282e84e55a3ee7e48 /src/window.c
parentae12ecd75672a2d772ec4a85a2a01dd7191793e5 (diff)
downloademacs-f567c4887025a9df6bc2448f3de7427eddd3219e.tar.gz
(Frecenter): Remove superfluous settings of iarg.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/window.c b/src/window.c
index 95898793d95..cf1142e3d06 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5453,7 +5453,6 @@ and redisplay normally--don't erase and redraw the frame. */)
{
struct position pos;
- iarg = XINT (arg);
iarg = max (iarg, this_scroll_margin);
pos = *vmotion (PT, -iarg, w);
@@ -5468,10 +5467,8 @@ and redisplay normally--don't erase and redraw the frame. */)
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);