diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-24 12:24:54 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-24 12:25:03 -0500 |
commit | 2ee58f18bbf49bebb78bf5840e7f06a531fe8e28 (patch) | |
tree | d0a6c0f257aaac323c4a5824578dab8ae76360ec /main.c | |
parent | 94e09c98f3dbef3c041750cc019efbc29e9254e6 (diff) |
get ctrl+w to work with split
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ // @TODO: -// - get ctrl+w to work properly +// - Ctrl+j = :join // - split depth limit // - resize split (i.e. change split_pos) @@ -332,7 +332,6 @@ int main(int argc, char **argv) { u16 node_index = (u16)ted_new_node(ted); assert(node_index == 0); Node *node = ted->active_node = &ted->nodes[node_index]; - ted->root = node; node->tabs = NULL; arr_add(node->tabs, 0); @@ -611,7 +610,7 @@ int main(int argc, char **argv) { if (ted->active_node) { float const padding = settings->padding; float x1 = padding, y = window_height-padding, x2 = window_width-padding; - Node *node = ted->root; + Node *node = &ted->nodes[0]; if (ted->find) { float y2 = y; y -= find_menu_height(ted); |