aboutsummaryrefslogtreecommitdiff
path: root/url-mode.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-06-23 11:29:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-06-26 16:39:23 +0000
commit20923bb2e8235c0e3d72f7c6195523ad0b0a2afa (patch)
treeaefe0f6a3c34627e037ae33f6aa9867c1d2030c8 /url-mode.c
parentMerge branch 'vs15-16' (diff)
grid: refactor: first step towards a more generic range handling
Diffstat (limited to 'url-mode.c')
-rw-r--r--url-mode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/url-mode.c b/url-mode.c
index 9356a362..57f47dd0 100644
--- a/url-mode.c
+++ b/url-mode.c
@@ -509,7 +509,7 @@ osc8_uris(const struct terminal *term, enum url_action action, url_list_t *urls)
continue;
for (size_t i = 0; i < extra->uri_ranges.count; i++) {
- const struct row_uri_range *range = &extra->uri_ranges.v[i];
+ const struct row_range *range = &extra->uri_ranges.v[i];
struct coord start = {
.col = range->start,
@@ -522,8 +522,8 @@ osc8_uris(const struct terminal *term, enum url_action action, url_list_t *urls)
tll_push_back(
*urls,
((struct url){
- .id = range->id,
- .url = xstrdup(range->uri),
+ .id = range->uri.id,
+ .url = xstrdup(range->uri.uri),
.range = {
.start = start,
.end = end,