summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-24 12:24:54 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-24 12:25:03 -0500
commit2ee58f18bbf49bebb78bf5840e7f06a531fe8e28 (patch)
treed0a6c0f257aaac323c4a5824578dab8ae76360ec /main.c
parent94e09c98f3dbef3c041750cc019efbc29e9254e6 (diff)
get ctrl+w to work with split
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.c b/main.c
index 76b17a7..e5b36c2 100644
--- a/main.c
+++ b/main.c
@@ -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);