diff options
author | nicm <nicm> | 2017-03-07 13:47:56 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-03-07 13:47:56 +0000 |
commit | daac28febb16f174a192d3e760e9790601e61b3d (patch) | |
tree | ba15563a0f322c30fcaa3d5862e0babd0650bc8c | |
parent | dc8fefe902279836958c7438718e838d3687aed2 (diff) | |
download | rtmux-daac28febb16f174a192d3e760e9790601e61b3d.tar.gz rtmux-daac28febb16f174a192d3e760e9790601e61b3d.tar.bz2 rtmux-daac28febb16f174a192d3e760e9790601e61b3d.zip |
If moving cells outside the current used count, update it.
-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++) { |