diff --git a/src/input.rs b/src/input.rs index f6c69b2..20deb34 100644 --- a/src/input.rs +++ b/src/input.rs @@ -84,8 +84,7 @@ pub fn im_input(nvim: &NvimSession, input: &str) { .map(|ch| keyval_to_input_string(&ch.to_string(), gdk::ModifierType::empty())) .collect(); nvim.block_timeout(nvim.input(&input)) - .ok_and_report() - .expect("Failed to send input command to nvim"); + .ok_and_report(); } pub fn gtk_key_press( @@ -96,8 +95,7 @@ pub fn gtk_key_press( if let Some(input) = convert_key(keyval, modifiers) { debug!("nvim_input -> {}", input); nvim.block_timeout(nvim.input(&input)) - .ok_and_report() - .expect("Failed to send input command to nvim"); + .ok_and_report(); glib::Propagation::Stop } else { glib::Propagation::Proceed