=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window-copy.c,v retrieving revision 1.308 retrieving revision 1.309 diff -c -r1.308 -r1.309 *** src/usr.bin/tmux/window-copy.c 2020/12/28 09:36:26 1.308 --- src/usr.bin/tmux/window-copy.c 2021/01/06 07:29:49 1.309 *************** *** 1,4 **** ! /* $OpenBSD: window-copy.c,v 1.308 2020/12/28 09:36:26 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: window-copy.c,v 1.309 2021/01/06 07:29:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 3009,3015 **** struct screen *s = data->backing, ss; struct screen_write_ctx ctx; struct grid *gd = s->grid; ! int found, cis, which = -1, stopped = 0; int cflags = REG_EXTENDED; u_int px, py, i, b, nfound = 0, width; u_int ssize = 1, start, end; --- 3009,3015 ---- struct screen *s = data->backing, ss; struct screen_write_ctx ctx; struct grid *gd = s->grid; ! int found, cis, stopped = 0; int cflags = REG_EXTENDED; u_int px, py, i, b, nfound = 0, width; u_int ssize = 1, start, end; *************** *** 3072,3082 **** if (!found) break; } - nfound++; - if (px == data->cx && - py == gd->hsize + data->cy - data->oy) - which = nfound; if (window_copy_search_mark_at(data, px, py, &b) == 0) { if (b + width > gd->sx * gd->sy) --- 3072,3078 ---- *************** *** 3088,3094 **** else data->searchgen++; } - px += width; } --- 3084,3089 ----