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 /ted.c | |
parent | 94e09c98f3dbef3c041750cc019efbc29e9254e6 (diff) |
get ctrl+w to work with split
Diffstat (limited to 'ted.c')
-rw-r--r-- | ted.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |