diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-24 11:32:20 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-24 11:32:20 -0500 |
commit | 4aa02183b7f317ca1183b4d3e58ec9da166479d6 (patch) | |
tree | 6c03bb12002a4ca9c2f48620fa2a704c41e756de /ted.h | |
parent | c101b231458da51767a79fb4b92304b1c76ef5e9 (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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |