aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rope.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rope.rs b/src/rope.rs
index 3a01e8b..be56568 100644
--- a/src/rope.rs
+++ b/src/rope.rs
@@ -57,6 +57,7 @@ impl Node {
}
fn print_line(&self, out: &mut dyn Write, n: usize) -> Result<(), std::io::Error> {
+ // TODO: escape unprintable characters
match self {
Node::Leaf(v) => {
let mut nl_count = 0;
@@ -149,6 +150,7 @@ impl Rope {
}
rope = rope.concat(Rope(Rc::new(Node::Leaf(buf))));
}
+ // TODO: rebalance
return Ok(rope);
}