mirror of
https://github.com/tmux/tmux.git
synced 2025-04-01 05:08:46 +00:00
Merge branch 'obsd-master' into master
This commit is contained in:
commit
541872bc57
@ -3366,8 +3366,11 @@ window_copy_match_at_cursor(struct window_copy_mode_data *data)
|
|||||||
cy = screen_hsize(data->backing) - data->oy + data->cy;
|
cy = screen_hsize(data->backing) - data->oy + data->cy;
|
||||||
if (window_copy_search_mark_at(data, data->cx, cy, &at) != 0)
|
if (window_copy_search_mark_at(data, data->cx, cy, &at) != 0)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
if (data->searchmark[at] == 0)
|
if (data->searchmark[at] == 0) {
|
||||||
return (NULL);
|
/* Allow one position after the match. */
|
||||||
|
if (at == 0 || data->searchmark[--at] == 0)
|
||||||
|
return (NULL);
|
||||||
|
}
|
||||||
window_copy_match_start_end(data, at, &start, &end);
|
window_copy_match_start_end(data, at, &start, &end);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user