mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
search: fix next/prev not updating selection correctly when matches overlap
When the new match overlapped with the old match, the selection wasn’t updated correctly.
This commit is contained in:
parent
24ee3dcc10
commit
c5519e2aa6
3 changed files with 11 additions and 3 deletions
|
|
@ -42,7 +42,7 @@ bool
|
|||
selection_on_rows(const struct terminal *term, int row_start, int row_end)
|
||||
{
|
||||
LOG_DBG("on rows: %d-%d, range: %d-%d (offset=%d)",
|
||||
term->selection.start.row, term->selection.end.row,
|
||||
term->selection.coords.start.row, term->selection.coords.end.row,
|
||||
row_start, row_end, term->grid->offset);
|
||||
|
||||
if (term->selection.coords.end.row < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue