1
0
mirror of https://github.com/tmux/tmux.git synced 2025-04-08 09:58:49 +00:00

Fix searching when match is at end of line, from Brad Town.

This commit is contained in:
nicm 2017-08-23 09:18:22 +00:00
parent f0ce29c341
commit 1d60dd5872

View File

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