Improved backspace
This commit is contained in:
parent
ac31fa8284
commit
601547b83d
2 changed files with 17 additions and 7 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue