This commit is contained in:
Kovid Goyal 2020-09-17 10:37:14 +05:30
parent 8a3665ce55
commit 6d1e1030bd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2492,7 +2492,7 @@ screen_start_selection(Screen *self, index_type x, index_type y, bool in_left_ha
static inline void
add_url_range(Screen *self, index_type start_x, index_type start_y, index_type end_x, index_type end_y) {
#define A(attr, val) r->attr = val;
ensure_space_for(&self->url_ranges, items, Selection, 1, capacity, 8, false);
ensure_space_for(&self->url_ranges, items, Selection, self->url_ranges.count + 8, capacity, 8, false);
Selection *r = self->url_ranges.items + self->url_ranges.count++;
memset(r, 0, sizeof(Selection));
r->last_rendered.y = self->lines + 10;