mirror of
https://github.com/tmux/tmux.git
synced 2024-12-14 10:58:48 +00:00
Check previous line rather than an extra line, from Anindya Mukherjee.
This commit is contained in:
parent
10975961de
commit
bc36b473f1
@ -2796,11 +2796,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user