Add ctrl+c handler
This commit is contained in:
parent
a4d9ec16a1
commit
bdd8650ba7
1 changed files with 35 additions and 4 deletions
|
|
@ -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"
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue