diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-08-10 18:00:00 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-08-10 18:00:00 +0000 |
commit | 7e5c222b2a0bd3fe8e3df66562ad956839c0c6df (patch) | |
tree | f75a9bb7ad1c65e0b9aeefef995db998b593843a | |
parent | 83eb262c741a035e570568562a2b1696f1c3f356 (diff) |
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) { |