diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-04-17 17:16:47 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-04-17 17:16:47 +0000 |
| commit | c5519e2aa6aacc7b552bd4d629b21e00051c211a (patch) | |
| tree | f3909884f6845fc84712463537d2885802069e94 /selection.c | |
| parent | wayland: refactor: remove ‘struct config’ pointer from wayland struct (diff) | |
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.
Diffstat (limited to 'selection.c')
| -rw-r--r-- | selection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/selection.c b/selection.c index a4bc5f3b..f279a834 100644 --- a/selection.c +++ b/selection.c @@ -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) |
