- if (space < 0 && tmp->next != NULL) {
- /* space below minimum */
- space = -space;
- if (space > ydiff) space = ydiff;
- } else {
- /* lowest window - give all the extra space for it */
- space = ydiff;
- }
- ydiff -= space;
- rec->first_line += moved;
- moved += space;
- rec->last_line += moved;
-
- mainwindow_resize(rec, xdiff, space);
+ /* lowest window - give all the extra space for it */
+ rec->last_line += ydiff;
+ mainwindow_resize(rec, xdiff, ydiff);