aboutsummaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/screen.c b/screen.c
index f6135b50..952392c2 100644
--- a/screen.c
+++ b/screen.c
@@ -469,14 +469,5 @@ screen_select_cell(struct screen *s, struct grid_cell *dst,
static void
screen_reflow(struct screen *s, u_int new_x)
{
- struct grid *old = s->grid;
- u_int change;
-
- s->grid = grid_create(old->sx, old->sy, old->hlimit);
-
- change = grid_reflow(s->grid, old, new_x);
- if (change < s->cy)
- s->cy -= change;
- else
- s->cy = 0;
+ grid_reflow(s->grid, new_x, &s->cy);
}