Fix search forward so it can match strings on the last line, SF bug

3571114 from "LiJunLe".
pull/1/head
Nicholas Marriott 2012-09-25 07:39:28 +00:00
parent 84612a8196
commit 0d0b3cf9a4
1 changed files with 1 additions and 1 deletions

View File

@ -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;