=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window-copy.c,v retrieving revision 1.289 retrieving revision 1.290 diff -c -r1.289 -r1.290 *** src/usr.bin/tmux/window-copy.c 2020/05/25 09:32:10 1.289 --- src/usr.bin/tmux/window-copy.c 2020/05/25 12:12:58 1.290 *************** *** 1,4 **** ! /* $OpenBSD: window-copy.c,v 1.289 2020/05/25 09:32:10 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: window-copy.c,v 1.290 2020/05/25 12:12:58 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 3167,3173 **** */ for (at = start; at <= end; at++) { py = at / sx; ! px = at % (py * sx); grid_get_cell(gd, px, py, &gc); buf = xrealloc(buf, len + gc.data.size + 1); --- 3167,3173 ---- */ for (at = start; at <= end; at++) { py = at / sx; ! px = at - (py * sx); grid_get_cell(gd, px, py, &gc); buf = xrealloc(buf, len + gc.data.size + 1);