mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
Sync OpenBSD patchset 239:
Use the right source and destination lines in grid_duplicate_lines.
This commit is contained in:
parent
7bcd7c2752
commit
e8ea3ccd58
6
grid.c
6
grid.c
@ -1,4 +1,4 @@
|
||||
/* $Id: grid.c,v 1.29 2009-08-09 17:28:23 tcunha Exp $ */
|
||||
/* $Id: grid.c,v 1.30 2009-08-10 21:40:21 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -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…
Reference in New Issue
Block a user