From c5519e2aa6aacc7b552bd4d629b21e00051c211a Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 17 Apr 2022 19:16:47 +0200 Subject: search: fix next/prev not updating selection correctly when matches overlap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the new match overlapped with the old match, the selection wasn’t updated correctly. --- selection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'selection.c') 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) -- cgit v1.3