mirror of
https://github.com/tmux/tmux.git
synced 2025-04-23 04:48:47 +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;
|
int matched;
|
||||||
|
|
||||||
for (ax = first; ax < last; ax++) {
|
for (ax = first; ax < last; ax++) {
|
||||||
if (ax + sgd->sx >= gd->sx)
|
if (ax + sgd->sx > gd->sx)
|
||||||
break;
|
break;
|
||||||
for (bx = 0; bx < sgd->sx; bx++) {
|
for (bx = 0; bx < sgd->sx; bx++) {
|
||||||
px = ax + bx;
|
px = ax + bx;
|
||||||
|
Loading…
Reference in New Issue
Block a user