aboutsummaryrefslogtreecommitdiffstats
path: root/src/rope.rs
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2024-01-06 13:36:43 -0800
committerRose Hogenson <rosehogenson@posteo.net>2024-01-06 13:36:43 -0800
commit94626edd6df13d2bcac561f99334a075b1ac8941 (patch)
tree788eef132deb445adfe0ff6c87b0138baafbc3d9 /src/rope.rs
parent46bed3055b52bc916360249f0a08f9686b22332a (diff)
downloadeditor-94626edd6df13d2bcac561f99334a075b1ac8941.tar.zst
Fix input issues when scrolling quickly.
Unfortunately the user input comes on the same channel as the terminal status report from 6n, so there's a possibility of getting confused here. As long as the program is relatively efficient, it shouldn't be observable.
Diffstat (limited to 'src/rope.rs')
-rw-r--r--src/rope.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rope.rs b/src/rope.rs
index 5454557..7d00dcd 100644
--- a/src/rope.rs
+++ b/src/rope.rs
@@ -4,8 +4,7 @@ use std::path::Path;
use std::error::Error;
use std::rc::Rc;
-// Set to a small value to help identify bugs in the implementation.
-const MAX_NODE_SIZE: usize = 4;
+const MAX_NODE_SIZE: usize = 254;
#[derive(Debug, Clone)]
struct Leaf {