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!();
break;
}
(KeyCode::Char(c), _) => {
if c.len_utf8() >= 2{
continue;
}
// TODO: check a full-width char and possible to insert
(KeyCode::Char(c), _) if c.len_utf8() < 2 => {
line.insert(position, c);
position += 1;
}