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:
parent
f0ce29c341
commit
1d60dd5872
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user