From 8bf342ec7f6b0bc0f0877d62a491d4322f9ce266 Mon Sep 17 00:00:00 2001 From: daa Date: Sat, 17 Feb 2018 16:57:57 +0300 Subject: [PATCH] Try to fix resize issue #58 Some time during initialization phase configure event come and don't processed. --- src/shell.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shell.rs b/src/shell.rs index 869af9b..694a302 100644 --- a/src/shell.rs +++ b/src/shell.rs @@ -835,6 +835,9 @@ fn set_nvim_initialized(state_arc: Arc>) { let mut state = state_arc.borrow_mut(); state.nvim.async_to_sync(); state.nvim.set_initialized(); + // in some case resize can happens while initilization in progress + // so force resize here + state.try_nvim_resize(); state.cursor.as_mut().unwrap().start(); Continue(false)