diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-01-06 10:01:22 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-01-06 10:01:22 +0000 |
commit | fc28e2065a06e893874d22b7e829de47748970f7 (patch) | |
tree | d50a279052a8099b5810af602ea7ca962e6ae2dd /window-copy.c | |
parent | 5a2db4c7e8ba94fadb31075e6813cf53b87b5366 (diff) | |
parent | 199689954b310a1915f573156f94cb93457c71f9 (diff) | |
download | rtmux-fc28e2065a06e893874d22b7e829de47748970f7.tar.gz rtmux-fc28e2065a06e893874d22b7e829de47748970f7.tar.bz2 rtmux-fc28e2065a06e893874d22b7e829de47748970f7.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'window-copy.c')
-rw-r--r-- | window-copy.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/window-copy.c b/window-copy.c index d6af397f..4c81cb1f 100644 --- a/window-copy.c +++ b/window-copy.c @@ -3009,7 +3009,7 @@ window_copy_search_marks(struct window_mode_entry *wme, struct screen *ssp, struct screen *s = data->backing, ss; struct screen_write_ctx ctx; struct grid *gd = s->grid; - int found, cis, which = -1, stopped = 0; + 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,11 +3072,7 @@ again: 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) @@ -3088,7 +3084,6 @@ again: else data->searchgen++; } - px += width; } |