From 94626edd6df13d2bcac561f99334a075b1ac8941 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Sat, 6 Jan 2024 13:36:43 -0800 Subject: 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. --- src/rope.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/rope.rs') 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 { -- cgit v1.3.1