diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/window.c b/src/window.c index d9af9ba72ac..a55043ad673 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1474,7 +1474,7 @@ delete_window (window) | |||
| 1474 | 1474 | ||
| 1475 | /* Check if we have a v/hchild with a v/hchild. In that case remove | 1475 | /* Check if we have a v/hchild with a v/hchild. In that case remove |
| 1476 | one of them. */ | 1476 | one of them. */ |
| 1477 | 1477 | ||
| 1478 | if (! NILP (par->vchild) && ! NILP (XWINDOW (par->vchild)->vchild)) | 1478 | if (! NILP (par->vchild) && ! NILP (XWINDOW (par->vchild)->vchild)) |
| 1479 | { | 1479 | { |
| 1480 | p = XWINDOW (par->vchild); | 1480 | p = XWINDOW (par->vchild); |
| @@ -5359,6 +5359,7 @@ and redisplay normally--don't erase and redraw the frame. */) | |||
| 5359 | { | 5359 | { |
| 5360 | arg = Fprefix_numeric_value (arg); | 5360 | arg = Fprefix_numeric_value (arg); |
| 5361 | CHECK_NUMBER (arg); | 5361 | CHECK_NUMBER (arg); |
| 5362 | iarg = XINT (arg); | ||
| 5362 | } | 5363 | } |
| 5363 | 5364 | ||
| 5364 | set_buffer_internal (buf); | 5365 | set_buffer_internal (buf); |
| @@ -5393,7 +5394,6 @@ and redisplay normally--don't erase and redraw the frame. */) | |||
| 5393 | int extra_line_spacing; | 5394 | int extra_line_spacing; |
| 5394 | int h = window_box_height (w); | 5395 | int h = window_box_height (w); |
| 5395 | 5396 | ||
| 5396 | iarg = XINT (arg); | ||
| 5397 | iarg = - max (-iarg, this_scroll_margin); | 5397 | iarg = - max (-iarg, this_scroll_margin); |
| 5398 | 5398 | ||
| 5399 | SET_TEXT_POS (pt, PT, PT_BYTE); | 5399 | SET_TEXT_POS (pt, PT, PT_BYTE); |
| @@ -5455,7 +5455,6 @@ and redisplay normally--don't erase and redraw the frame. */) | |||
| 5455 | { | 5455 | { |
| 5456 | struct position pos; | 5456 | struct position pos; |
| 5457 | 5457 | ||
| 5458 | iarg = XINT (arg); | ||
| 5459 | iarg = max (iarg, this_scroll_margin); | 5458 | iarg = max (iarg, this_scroll_margin); |
| 5460 | 5459 | ||
| 5461 | pos = *vmotion (PT, -iarg, w); | 5460 | pos = *vmotion (PT, -iarg, w); |
| @@ -5470,10 +5469,8 @@ and redisplay normally--don't erase and redraw the frame. */) | |||
| 5470 | 5469 | ||
| 5471 | if (center_p) | 5470 | if (center_p) |
| 5472 | iarg = make_number (ht / 2); | 5471 | iarg = make_number (ht / 2); |
| 5473 | else if (XINT (arg) < 0) | 5472 | else if (iarg < 0) |
| 5474 | iarg = XINT (arg) + ht; | 5473 | iarg += ht; |
| 5475 | else | ||
| 5476 | iarg = XINT (arg); | ||
| 5477 | 5474 | ||
| 5478 | /* Don't let it get into the margin at either top or bottom. */ | 5475 | /* Don't let it get into the margin at either top or bottom. */ |
| 5479 | iarg = max (iarg, this_scroll_margin); | 5476 | iarg = max (iarg, this_scroll_margin); |