Don't process keys that was passed to nvim instance
This commit is contained in:
parent
d071cabce6
commit
59b00b392a
@ -119,9 +119,11 @@ fn gtk_key_press(_: &Window, ev: &EventKey) -> Inhibit {
|
||||
let mut ui = ui_cell.borrow_mut();
|
||||
ui.nvim().input(&input).expect("Error run input command to nvim");
|
||||
});
|
||||
}
|
||||
Inhibit(true)
|
||||
} else {
|
||||
Inhibit(false)
|
||||
}
|
||||
}
|
||||
|
||||
fn calc_char_bounds(ctx: &cairo::Context) -> TextExtents {
|
||||
let font_face = cairo::FontFace::toy_create(FONT_NAME, FontSlant::Normal, FontWeight::Normal);
|
||||
|
Loading…
Reference in New Issue
Block a user