summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-28 20:40:52 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-28 20:40:52 -0500
commit31b5649b131695300f39563640c4af8f0d3032cb (patch)
tree71f4c2d2c0b2e56a36e7c86f250869c6daa16eda /ted.h
parent0e57122ecfd554131fd6ad54fcbb556733bf6c88 (diff)
more tabs
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index 58b5324..9228d00 100644
--- a/ted.h
+++ b/ted.h
@@ -103,12 +103,15 @@ 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
+ u16 active_tab;
u16 left; // index into ted->nodes
u16 right;
} Node;
#define TED_MAX_BUFFERS 256
#define TED_MAX_NODES 256
+// max tabs per node
+#define TED_MAX_TABS 100
typedef struct Ted {
Font *font_bold;
Font *font;