diff options
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -103,9 +103,11 @@ typedef struct { // a node is a collection of tabs OR a split of two nodes typedef struct Node { u16 *tabs; // dynamic array of indices into ted->buffers, or NULL if this is a split + float split_pos; // number from 0 to 1 indicating where the split is. u16 active_tab; - u16 left; // index into ted->nodes - u16 right; + bool vertical_split; // is the split vertical? if false, this split looks like a|b + u16 split_a; // split left/upper half; index into ted->nodes + u16 split_b; // split right/lower half } Node; #define TED_MAX_BUFFERS 256 |