summaryrefslogtreecommitdiff
path: root/ted.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 /ted.c
parent94e09c98f3dbef3c041750cc019efbc29e9254e6 (diff)
get ctrl+w to work with split
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ted.c b/ted.c
index e12ae0d..5ad3f82 100644
--- a/ted.c
+++ b/ted.c
@@ -119,6 +119,7 @@ static i32 ted_new_node(Ted *ted) {
bool *nodes_used = ted->nodes_used;
for (i32 i = 0; i < TED_MAX_NODES; ++i) {
if (!nodes_used[i]) {
+ memset(&ted->nodes[i], 0, sizeof ted->nodes[i]); // zero new node
nodes_used[i] = true;
return i;
}