diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-04-09 13:09:02 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-04-09 13:09:02 +0000 |
| commit | 5b1f1602bccfb7c37e50a8509f44b24e9aa3b5d1 (patch) | |
| tree | d7d801fa0dee8d886b1d8302ea3b0436b86bf22e /render.c | |
| parent | config: use fallback when XDG_CONFIG_{HOME,DIRS} is set, but empty (diff) | |
refactor: add a ‘range’ struct, grouping a start and end coord together
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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( |
