diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-11-15 20:01:22 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-11-15 20:01:22 +0000 |
commit | e755ca37b339ac2960f753eff4470c3b68f4b223 (patch) | |
tree | 69430c7e9a78ea8ea3cd608346b397b06e3ae7bc /screen.c | |
parent | 392da897ffbef11a4e75d27d9207ca249bcad56e (diff) | |
parent | 533a5719c5edf53f0d7021d4340af230cc43ac8a (diff) |
Merge branch 'obsd-master'
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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); } |