This commit is contained in:
daa84 2017-08-17 17:06:09 +03:00
parent 367a7815f8
commit b2ae40982f

View File

@ -78,13 +78,11 @@ pub fn convert_key(ev: &EventKey) -> Option<String> {
}
pub fn im_input(nvim: &mut Neovim, input: &str) {
println!("im input {}", input);
debug!("nvim_input -> {}", input);
nvim.input(&input).expect("Error run input command to nvim");
}
pub fn gtk_key_press(nvim: &mut Neovim, ev: &EventKey) -> Inhibit {
println!("keyval {:?}", gdk::keyval_name(ev.get_keyval()));
if let Some(input) = convert_key(ev) {
debug!("nvim_input -> {}", input);
nvim.input(&input).expect("Error run input command to nvim");