remove pointless box structure

This commit is contained in:
Vincent Sanders 2024-01-08 22:40:11 +00:00
parent ccb7562903
commit 7c957b4564

View File

@ -54,7 +54,6 @@ typedef enum {
struct selection {
struct content *c;
struct box *root;
unsigned max_idx; /* total bytes in text representation */
@ -257,7 +256,6 @@ struct selection *selection_create(struct content *c)
sel = calloc(1, sizeof(struct selection));
if (sel) {
sel->c = c;
sel->root = NULL;
sel->drag_state = DRAG_NONE;
sel->max_idx = 0;
selection_clear(sel, false);