From 26eaa7b223be587ab35e4fe50fbed6790426d89d Mon Sep 17 00:00:00 2001 From: GreasrySlug <9619abgoni@gmai.com> Date: Wed, 8 Feb 2023 10:49:25 +0900 Subject: [PATCH] refactor: add TODO and include condition --- crates/erg_common/stdin.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/erg_common/stdin.rs b/crates/erg_common/stdin.rs index c093c333..6472d007 100644 --- a/crates/erg_common/stdin.rs +++ b/crates/erg_common/stdin.rs @@ -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; }