mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-25 12:25:44 +02:00
Use the right source and destination lines in grid_duplicate_lines.
This commit is contained in:
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) {
|
||||||
|
Reference in New Issue
Block a user