summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-25 19:52:40 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-25 19:52:40 -0500
commitd453eedc5282074af83375532e8edcb68ada3300 (patch)
tree204b9f87cf187e03e856d1c997a3fb6d300e761f /main.c
parent2baf965c7db4a3640cd120e050c61aa7de67448b (diff)
started tab moving
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 52e5561..ebec863 100644
--- a/main.c
+++ b/main.c
@@ -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];