Improved backspace

This commit is contained in:
Jeremy Soller 2022-10-19 16:09:22 -06:00
parent ac31fa8284
commit 601547b83d
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
2 changed files with 17 additions and 7 deletions

View file

@ -137,6 +137,8 @@ fn main() {
//TODO: support bidi
for line in text.lines() {
log::debug!("Line {:?}", line);
for c in line.chars() {
if c.is_control() {
log::warn!("Ignoring control character {:?}", c);
@ -167,8 +169,6 @@ fn main() {
buffer.action(TextAction::Insert(c));
}
log::debug!("Line '{}': {:?}", line, line);
// Test backspace of newline
{
let cursor = buffer.cursor();