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 --- render.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'render.c') diff --git a/render.c b/render.c index e9edc012..e408a9dd 100644 --- a/render.c +++ b/render.c @@ -3231,7 +3231,7 @@ render_urls(struct terminal *term) continue; bool hide = false; - const struct coord *pos = &url->start; + const struct coord *pos = &url->range.start; const int _row = (pos->row - scrollback_end @@ -3701,14 +3701,14 @@ maybe_resize(struct terminal *term, int width, int height, bool force) * tracking points list. */ struct coord *const tracking_points[] = { - &term->selection.start, - &term->selection.end, + &term->selection.coords.start, + &term->selection.coords.end, }; /* Resize grids */ grid_resize_and_reflow( &term->normal, new_normal_grid_rows, new_cols, old_rows, new_rows, - term->selection.end.row >= 0 ? ALEN(tracking_points) : 0, + term->selection.coords.end.row >= 0 ? ALEN(tracking_points) : 0, tracking_points); grid_resize_without_reflow( -- cgit v1.3