summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-08-23 09:18:22 +0000
committernicm <nicm@openbsd.org>2017-08-23 09:18:22 +0000
commit8178f8a7e27bc8878420c8b0fa11e6ee865cde73 (patch)
treee424976860ce319326f0082d589b995acc85e049
parentAllow multiple bells even if there is an existing bell (but not activity (diff)
downloadwireguard-openbsd-8178f8a7e27bc8878420c8b0fa11e6ee865cde73.tar.xz
wireguard-openbsd-8178f8a7e27bc8878420c8b0fa11e6ee865cde73.zip
Fix searching when match is at end of line, from Brad Town.
-rw-r--r--usr.bin/tmux/window-copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c
index 23608e72b02..2581285f646 100644
--- a/usr.bin/tmux/window-copy.c
+++ b/usr.bin/tmux/window-copy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-copy.c,v 1.180 2017/08/02 11:10:48 nicm Exp $ */
+/* $OpenBSD: window-copy.c,v 1.181 2017/08/23 09:18:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -1001,7 +1001,7 @@ window_copy_search_lr(struct grid *gd,
int matched;
for (ax = first; ax < last; ax++) {
- if (ax + sgd->sx >= gd->sx)
+ if (ax + sgd->sx > gd->sx)
break;
for (bx = 0; bx < sgd->sx; bx++) {
px = ax + bx;