mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
If moving cells outside the current used count, update it.
This commit is contained in:
parent
dc8fefe902
commit
daac28febb
2
grid.c
2
grid.c
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user