From 5b1f1602bccfb7c37e50a8509f44b24e9aa3b5d1 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 9 Apr 2022 15:09:02 +0200 Subject: refactor: add a ‘range’ struct, grouping a start and end coord together MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'search.c') diff --git a/search.c b/search.c index b422d957..f24d49cc 100644 --- a/search.c +++ b/search.c @@ -450,11 +450,11 @@ search_match_to_end_of_word(struct terminal *term, bool spaces_only) if (term->search.match_len == 0) return; - xassert(term->selection.end.row != -1); + xassert(term->selection.coords.end.row != -1); const bool move_cursor = term->search.cursor == term->search.len; - const struct coord old_end = term->selection.end; + const struct coord old_end = term->selection.coords.end; struct coord new_end = old_end; struct row *row = NULL; -- cgit v1.3