summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-09-25 07:39:29 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-09-25 07:39:29 +0000
commit3d4cdfc1fd61fa3b649de9056b5eca2cc058a564 (patch)
treead04570be7d22df90e44479b0047cd43323df765 /usr.bin/tmux
parent12d325ff1b8a76efb2feab30c3052172e260b9d3 (diff)
Fix search forward so it can match strings on the last line, SF bug
3571114 from "LiJunLe".
Diffstat (limited to 'usr.bin/tmux')
-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 759af5d522d..3863799c440 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.82 2012/08/11 06:45:33 nicm Exp $ */
+/* $OpenBSD: window-copy.c,v 1.83 2012/09/25 07:39:28 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1068,7 +1068,7 @@ window_copy_search_down(struct window_pane *wp, const char *searchstr)
retry:
sgd = ss.grid;
- for (i = fy + 1; i < gd->hsize + gd->sy; i++) {
+ for (i = fy + 1; i < gd->hsize + gd->sy + 1; i++) {
first = 0;
if (i == fy + 1)
first = fx;