diff options
author | 2009-08-10 17:59:59 +0000 | |
---|---|---|
committer | 2009-08-10 17:59:59 +0000 | |
commit | b9fa24872dafa369c9e50fab5a2e74149e4721c4 (patch) | |
tree | 05cb9c8b3d241804bd24494ced2dc9342a8c2322 | |
parent | three more shutdown hooks bite the dust. (diff) | |
download | wireguard-openbsd-b9fa24872dafa369c9e50fab5a2e74149e4721c4.tar.xz wireguard-openbsd-b9fa24872dafa369c9e50fab5a2e74149e4721c4.zip |
Use the right source and destination lines in grid_duplicate_lines.
-rw-r--r-- | usr.bin/tmux/grid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c index 1bc807ebb7b..39e38ff2276 100644 --- a/usr.bin/tmux/grid.c +++ b/usr.bin/tmux/grid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grid.c,v 1.10 2009/08/08 13:29:27 nicm Exp $ */ +/* $OpenBSD: grid.c,v 1.11 2009/08/10 17:59:59 nicm 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) { |