Cleanup
This commit is contained in:
parent
367a7815f8
commit
b2ae40982f
@ -78,13 +78,11 @@ pub fn convert_key(ev: &EventKey) -> Option<String> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn im_input(nvim: &mut Neovim, input: &str) {
|
pub fn im_input(nvim: &mut Neovim, input: &str) {
|
||||||
println!("im input {}", input);
|
|
||||||
debug!("nvim_input -> {}", input);
|
debug!("nvim_input -> {}", input);
|
||||||
nvim.input(&input).expect("Error run input command to nvim");
|
nvim.input(&input).expect("Error run input command to nvim");
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn gtk_key_press(nvim: &mut Neovim, ev: &EventKey) -> Inhibit {
|
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) {
|
if let Some(input) = convert_key(ev) {
|
||||||
debug!("nvim_input -> {}", input);
|
debug!("nvim_input -> {}", input);
|
||||||
nvim.input(&input).expect("Error run input command to nvim");
|
nvim.input(&input).expect("Error run input command to nvim");
|
||||||
|
Loading…
Reference in New Issue
Block a user