aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2024-01-13 22:18:52 -0800
committerRose Hogenson <rosehogenson@posteo.net>2024-01-13 22:18:52 -0800
commit1e18d09bdd2281ea39350ddb72b29fc8c8d9e5ba (patch)
treee896b76b7181752372b862e72a51e643652d5a03 /src
parent9618afee3978354337277c8fffeba20431b1c4f3 (diff)
downloadeditor-1e18d09bdd2281ea39350ddb72b29fc8c8d9e5ba.tar.zst
Revert "Max 15 children per node."
This reverts commit b275950c2e8dbffcf8b2a8915b0bbfab24dae4ff. I liked it better when we only had 3 children max.
Diffstat (limited to 'src')
-rw-r--r--src/rope.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rope.rs b/src/rope.rs
index 351ced9..e7e62c8 100644
--- a/src/rope.rs
+++ b/src/rope.rs
@@ -3,7 +3,7 @@ use std::io::{ErrorKind, Read, Write};
use std::rc::Rc;
const MAX_NODE_SIZE: usize = 1024;
-const MAX_CHILDREN: usize = 15;
+const MAX_CHILDREN: usize = 5;
fn read(r: &mut dyn Read, buf: &mut [u8]) -> Result<usize, std::io::Error> {
loop {