Fix Insert('\n')

This commit is contained in:
Audrey Dutcher 2022-12-29 19:38:27 -08:00 committed by Jeremy Soller
parent 8e09a128bb
commit 4616ca7dd9

View file

@ -410,7 +410,7 @@ impl<'a> Edit<'a> for Editor<'a> {
},
Action::Insert(character) => {
if character.is_control()
&& !['\t', '\u{92}'].contains(&character)
&& !['\t', '\n', '\u{92}'].contains(&character)
{
// Filter out special chars (except for tab), use Action instead
log::debug!("Refusing to insert control character {:?}", character);