From 59b00b392a8f93776fcd8939a5878a4f83dc24c6 Mon Sep 17 00:00:00 2001 From: daa Date: Tue, 3 May 2016 13:36:59 +0300 Subject: [PATCH] Don't process keys that was passed to nvim instance --- src/ui.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui.rs b/src/ui.rs index 24c7d19..4aa0447 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -119,8 +119,10 @@ 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) } - Inhibit(false) } fn calc_char_bounds(ctx: &cairo::Context) -> TextExtents {