diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-03-07 15:32:28 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-03-07 15:32:28 +0000 |
commit | 5d3296c53b820664d50d96b2b926f2c2c1105e97 (patch) | |
tree | 6662d3cc05fc87f840157fdac6cd489817b2e1c0 /grid.c | |
parent | 69257bc0aa8b5fbafb459f8e46985a97f840da63 (diff) | |
parent | 1e6e606f54537c732cce48e5d3eae7fc29281fe5 (diff) | |
download | rtmux-5d3296c53b820664d50d96b2b926f2c2c1105e97.tar.gz rtmux-5d3296c53b820664d50d96b2b926f2c2c1105e97.tar.bz2 rtmux-5d3296c53b820664d50d96b2b926f2c2c1105e97.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'grid.c')
-rw-r--r-- | grid.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -553,6 +553,8 @@ grid_move_cells(struct grid *gd, u_int dx, u_int px, u_int py, u_int nx, grid_expand_line(gd, py, dx + nx, 8); memmove(&gl->celldata[dx], &gl->celldata[px], nx * sizeof *gl->celldata); + if (dx + nx > gl->cellused) + gl->cellused = dx + nx; /* Wipe any cells that have been moved. */ for (xx = px; xx < px + nx; xx++) { |