Check previous line rather than an extra line, from Anindya Mukherjee.

This commit is contained in:
nicm 2020-04-03 05:18:02 +00:00
parent a20d96000e
commit b65eab5505
1 changed files with 2 additions and 5 deletions

View File

@ -2825,11 +2825,8 @@ window_copy_search_marks(struct window_mode_entry *wme, struct screen *ssp,
}
}
time(&tstart);
py = gd->hsize - data->oy;
if (py > 0)
py--;
for (; py > 0; py--) {
gl = grid_peek_line(gd, py);
for (py = gd->hsize - data->oy; py > 0; py--) {
gl = grid_peek_line(gd, py - 1);
if (~gl->flags & GRID_LINE_WRAPPED)
break;
}