aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/terminal.h b/terminal.h
index 9fdd3dc0..21eb7cee 100644
--- a/terminal.h
+++ b/terminal.h
@@ -129,8 +129,14 @@ struct row_range {
int end;
union {
- struct uri_range_data uri;
- struct curly_range_data curly;
+ /* This is just an expanded union row_range_data, but
+ * anonymous, so that we don't have to write range->u.uri.id,
+ * but can instead do range->uri.id */
+ union {
+ struct uri_range_data uri;
+ struct curly_range_data curly;
+ };
+ union row_range_data data;
};
};