mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-25 20:04:02 +00:00
Use the right source and destination lines in grid_duplicate_lines.
This commit is contained in:
parent
ec0c33b844
commit
fa64c1235e
1 changed files with 2 additions and 2 deletions
4
grid.c
4
grid.c
|
|
@ -514,8 +514,8 @@ grid_duplicate_lines(
|
|||
grid_clear_lines(dst, dy, ny);
|
||||
|
||||
for (yy = 0; yy < ny; yy++) {
|
||||
srcl = &src->linedata[yy];
|
||||
dstl = &dst->linedata[yy];
|
||||
srcl = &src->linedata[sy];
|
||||
dstl = &dst->linedata[dy];
|
||||
|
||||
memcpy(dstl, srcl, sizeof *dstl);
|
||||
if (srcl->cellsize != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue