refactor: add TODO and include condition

This commit is contained in:
GreasrySlug 2023-02-08 10:49:25 +09:00
parent 0bf2097460
commit 26eaa7b223

View file

@ -226,10 +226,8 @@ impl StdinReader {
println!(); println!();
break; break;
} }
(KeyCode::Char(c), _) => { // TODO: check a full-width char and possible to insert
if c.len_utf8() >= 2{ (KeyCode::Char(c), _) if c.len_utf8() < 2 => {
continue;
}
line.insert(position, c); line.insert(position, c);
position += 1; position += 1;
} }