mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 03:49:06 +00:00
refactor: add TODO and include condition
This commit is contained in:
parent
0bf2097460
commit
26eaa7b223
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue