From 18fe7b9bbcad9229744ebf82f758872b61819ec2 Mon Sep 17 00:00:00 2001 From: daa Date: Sun, 12 Mar 2017 18:11:43 +0300 Subject: [PATCH] Fix non ascii input --- src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.rs b/src/input.rs index 6b8d4b9..0e3a6a8 100644 --- a/src/input.rs +++ b/src/input.rs @@ -23,7 +23,7 @@ pub fn keyval_to_input_string(val: &str, state: gdk::ModifierType) -> String { input.push_str(val); - if input.len() > 1 { + if input.chars().count() > 1 { format!("<{}>", input) } else { input