mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Use the right source and destination lines in grid_duplicate_lines.
This commit is contained in:
parent
ec0c33b844
commit
fa64c1235e
4
grid.c
4
grid.c
@ -514,8 +514,8 @@ grid_duplicate_lines(
|
|||||||
grid_clear_lines(dst, dy, ny);
|
grid_clear_lines(dst, dy, ny);
|
||||||
|
|
||||||
for (yy = 0; yy < ny; yy++) {
|
for (yy = 0; yy < ny; yy++) {
|
||||||
srcl = &src->linedata[yy];
|
srcl = &src->linedata[sy];
|
||||||
dstl = &dst->linedata[yy];
|
dstl = &dst->linedata[dy];
|
||||||
|
|
||||||
memcpy(dstl, srcl, sizeof *dstl);
|
memcpy(dstl, srcl, sizeof *dstl);
|
||||||
if (srcl->cellsize != 0) {
|
if (srcl->cellsize != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user