summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-24 11:32:20 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-24 11:32:20 -0500
commit4aa02183b7f317ca1183b4d3e58ec9da166479d6 (patch)
tree6c03bb12002a4ca9c2f48620fa2a704c41e756de /ted.h
parentc101b231458da51767a79fb4b92304b1c76ef5e9 (diff)
big bugfixes
update active_tab properly when a tab is closed, fix Ctrl+O with no buffers open
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ted.h b/ted.h
index d629dd5..9f6c582 100644
--- a/ted.h
+++ b/ted.h
@@ -204,8 +204,8 @@ typedef struct {
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;
- bool vertical_split; // is the split vertical? if false, this split looks like a|b
+ u16 active_tab; // index of active tab in tabs.
+ bool split_vertical; // 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;