Add ctrl+c handler

This commit is contained in:
Andras Schmelczer 2024-12-18 22:37:42 +00:00
commit bdd8650ba7
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -110,7 +110,8 @@ where
#[cfg(debug_assertions)]
debug_assert!(
deleted_text
.as_ref().is_none_or(|text| builder.get_slice(self.range()) == *text),
.as_ref()
.is_none_or(|text| builder.get_slice(self.range()) == *text),
"Text to delete does not match the text in the rope"
);