mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 11:59:05 +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!();
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue