diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-25 19:52:40 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-25 19:52:40 -0500 |
commit | d453eedc5282074af83375532e8edcb68ada3300 (patch) | |
tree | 204b9f87cf187e03e856d1c997a3fb6d300e761f /main.c | |
parent | 2baf965c7db4a3640cd120e050c61aa7de67448b (diff) |
started tab moving
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -323,7 +323,7 @@ int main(int argc, char **argv) { { u16 buffer_index = (u16)ted_new_buffer(ted); - assert(buffer_index == 0); + assert(buffer_index == 1); TextBuffer *buffer = &ted->buffers[buffer_index]; buffer_create(buffer, ted); ted->active_buffer = buffer; @@ -331,7 +331,7 @@ int main(int argc, char **argv) { assert(node_index == 0); Node *node = ted->active_node = &ted->nodes[node_index]; node->tabs = NULL; - arr_add(node->tabs, 0); + arr_add(node->tabs, buffer_index); char path[TED_PATH_MAX]; |